{"data":{"slug":"github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-data-cleaning-numeric-format-normalization-feab951e6d26","title":"Numeric Format Normalization","summary":"Standardize and clean numeric data in Excel, support large-scale Parquet conversion, and export result files with total verification.","url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-data-cleaning-numeric-format-normalization-feab951e6d26","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-data-cleaning-numeric-format-normalization-feab951e6d26","markdown_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-data-cleaning-numeric-format-normalization-feab951e6d26.md","download_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-data-cleaning-numeric-format-normalization-feab951e6d26\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"This skill requires the user to specify the target column and summary sheet name for processing. The first deliverable is a cleaned Excel file with verification results, and the output includes both Excel and CSV formats.","instructions":"---\nname: numeric-format-normalization\ndescription: \"\u5bf9 Excel \u6570\u636e\u8fdb\u884c\u6570\u503c\u683c\u5f0f\u6807\u51c6\u5316\u4e0e\u6e05\u6d17\uff0c\u652f\u6301\u5927\u89c4\u6a21\u6570\u636e\u7684 Parquet \u8f6c\u6362\u6d41\u7a0b\uff0c\u5e76\u5b8c\u6210\u5173\u952e\u6307\u6807\u7684\u5408\u8ba1\u6838\u5bf9\u4e0e\u7ed3\u679c\u6587\u4ef6\u5bfc\u51fa\u3002\"\n---\n\n## Skill Steps\n\n> This sub-skill covers one capability of the Excel workflow. For reading\/counting\/Parquet optimization, see the parent workflow SKILL.md.\n\nStep1 \u5bf9\u76ee\u6807\u5217\u8fdb\u884c\u6570\u636e\u6e05\u6d17\uff08\u53bb\u9664\u7a7a\u503c\u3001\u6807\u51c6\u5316\u6570\u503c\u683c\u5f0f\uff09\uff0c\u8ba1\u7b97\u5408\u8ba1\u503c\uff0c\u5e76\u4e0e\u6307\u5b9a\u6c47\u603b Sheet \u4e2d\u7684\u5408\u8ba1\u884c\u8fdb\u884c\u7cbe\u786e\u6838\u5bf9\u3002\n```python\ntarget_col = '\u76ee\u6807\u6570\u503c\u5217'  # \u793a\u4f8b\uff1a'\u5efa\u7b51\u9762\u79ef'\nsummary_sheet_name = 'Summary' # \u793a\u4f8b\u6c47\u603bSheet\u540d\nsummary_item_col = '\u9879\u76ee'\nsummary_value_col = '\u6570\u503c'\n\n# \u6570\u636e\u6e05\u6d17\uff1a\u53bb\u9664\u7a7a\u503c\u3001\u5f3a\u5236\u8f6c\u6362\u4e3a\u6570\u503c\u683c\u5f0f\ndf_cleaned = df_processed.dropna(subset=[target_col]).copy()\ndf_cleaned[target_col] = pd.to_numeric(df_cleaned[target_col], errors='coerce')\n\n# \u8ba1\u7b97\u5408\u8ba1\ntotal_calculated = df_cleaned[target_col].sum()\n\n# \u4ece\u6307\u5b9a Sheet \u4e2d\u8bfb\u53d6\u201c\u5408 \u8ba1\u201d\u884c\u6570\u503c\u8fdb\u884c\u6838\u5bf9\ntry:\n    summary_sheet = pd.read_excel(file_path, sheet_name=summary_sheet_name)\n    expected_total = summary_sheet.loc[summary_sheet[summary_item_col] == '\u5408 \u8ba1', summary_value_col].values[0]\n    \n    # \u6838\u5bf9\u4e00\u81f4\u6027 (\u5904\u7406\u6d6e\u70b9\u6570\u7cbe\u5ea6\u95ee\u9898)\n    if abs(total_calculated - expected_total) < 1e-6:\n        consistency = \"\u4e00\u81f4\"\n        difference = 0\n    else:\n        consistency = \"\u4e0d\u4e00\u81f4\"\n        difference = abs(total_calculated - expected_total)\n    \n    print(f\"\u8ba1\u7b97\u5408\u8ba1: {total_calculated}, \u6307\u5b9a\u5408\u8ba1: {expected_total}, \u4e00\u81f4\u6027: {consistency}\")\nexcept Exception as e:\n    print(f\"\u6838\u5bf9\u5931\u8d25: {e}\")\n    expected_total = None\n    consistency = \"\u672a\u77e5\"\n    difference = None\n```\n\nStep2 \u5c06\u5206\u6790\u4e0e\u6838\u5bf9\u7ed3\u679c\u4fdd\u5b58\u4e3a\u8868\u683c\u6587\u4ef6\uff0c\u5e76\u751f\u6210\u53ef\u4f9b\u4e0b\u8f7d\u7684\u6587\u4ef6\u94fe\u63a5\u3002\n```python\noutput_path_xlsx = 'analysis_result.xlsx'\noutput_path_csv = 'analysis_result.csv'\n\n# \u6784\u5efa\u7ed3\u679c\u8868\u683c\nresult_data = {\n    '\u7edf\u8ba1\u9879': ['\u603b\u884c\u6570', f'{target_col}\u5408\u8ba1\uff08\u8ba1\u7b97\u503c\uff09', f'{target_col}\u5408\u8ba1\uff08\u6307\u5b9a\u503c\uff09', '\u4e00\u81f4\u6027', '\u5dee\u5f02\u503c'],\n    '\u6570\u503c': [total_rows, total_calculated, expected_total, consistency, difference]\n}\nresult_df = pd.DataFrame(result_data)\n\n# \u4fdd\u5b58\u4e3a\u591a\u79cd\u683c\u5f0f\nresult_df.to_excel(output_path_xlsx, index=False)\nresult_df.to_csv(output_path_csv, index=False, encoding='utf-8-sig')\n\n# \u8f93\u51fa\u4e0b\u8f7d\u94fe\u63a5\uff08\u5728\u62a5\u544a\u4e2d\u5c55\u793a\uff09\nprint(\"\u5206\u6790\u7ed3\u679c\u5df2\u4fdd\u5b58\uff0c\u53ef\u4e0b\u8f7d\uff1a\")\nprint(f\"- [{output_path_xlsx}](sandbox:\/{output_path_xlsx})\")\nprint(f\"- [{output_path_csv}](sandbox:\/{output_path_csv})\")\n```\n","use_cases":["Standardize numeric data in Excel columns for data analysis.","Verify total values between processed data and summary sheets.","Export cleaned data and verification results as Excel or CSV files."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/OpenSenseNova\/SenseNova-Skills\/blob\/07e7ff8c4bdfd7b79e7402fe94af59d2a5a9749b\/skills\/sn-da-excel-workflow\/capability\/excel-data-cleaning\/numeric-format-normalization\/SKILL.md","source_commit":"07e7ff8c4bdfd7b79e7402fe94af59d2a5a9749b","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T08:07:24.000000Z","updated_at":"2026-11-16T05:16:30.000000Z","seo_title":"Numeric Format Normalization Excel","seo_description":"Standardize numeric data in Excel, perform total verification, and export result files with Parquet conversion support.","seo_keywords":["Excel numeric formatting","Data cleaning Excel","Total verification Excel","Parquet conversion Excel","Data export Excel"]}}