{"data":{"slug":"github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-table-styling-table-theme-styling-9d8f80b2baa9","title":"Excel Large File Conditional Filtering and Categorization Summary","summary":"Suitable for fast reading and statistical analysis of extremely large Excel files, supports automatic conversion to Parquet format for faster processing, and allows conditional filtering, categorization summary, and result export for specified target columns.","url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-table-styling-table-theme-styling-9d8f80b2baa9","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-table-styling-table-theme-styling-9d8f80b2baa9","markdown_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-table-styling-table-theme-styling-9d8f80b2baa9.md","download_url":"https:\/\/skillshunter.net\/skills\/github-opensensenova-sensenova-skills-skills-sn-da-excel-workflow-capability-excel-table-styling-table-theme-styling-9d8f80b2baa9\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"The tool requires the user to specify the target column for filtering and the grouping column for categorization. It also generates a downloadable Excel file with the summarized results.","instructions":"---\nname: dynamic-large-file-parquet-analysis\ndescription: \"\u52a8\u6001\u7edf\u8ba1Excel\u603b\u884c\u6570\uff0c\u5f53\u6570\u636e\u91cf\u8fc7\u5927\uff08\u226510000\u884c\uff09\u65f6\u81ea\u52a8\u8f6c\u6362\u4e3aParquet\u683c\u5f0f\u52a0\u901f\u8bfb\u53d6\uff0c\u5e76\u5bf9\u6307\u5b9a\u76ee\u6807\u5217\u8fdb\u884c\u6761\u4ef6\u7b5b\u9009\u3001\u5206\u7c7b\u6c47\u603b\u4e0e\u7ed3\u679c\u5bfc\u51fa\uff0c\u9002\u7528\u4e8e\u8d85\u5927\u4f53\u79efExcel\u6587\u4ef6\u7684\u5feb\u901f\u8bfb\u53d6\u4e0e\u7edf\u8ba1\u5206\u6790\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 \u52a8\u6001\u8bfb\u53d6\u6570\u636e\uff08Parquet\u52a0\u901f\u6216\u5e38\u89c4\u8bfb\u53d6\uff09\u3002\n```python\n# \u82e5\u5df2\u52a0\u8f7d sn-da-large-file-analysis \u6280\u80fd\uff0c\u5c06 Excel \u6587\u4ef6\u8f6c\u6362\u4e3a Parquet \u683c\u5f0f\u52a0\u901f\u8bfb\u53d6\nif 'da_large_file_analysis' in globals():\n    # \u5047\u8bbe sn-da-large-file-analysis \u8f6c\u6362\u540e\u751f\u6210\u4e86 parquet \u6587\u4ef6\n    parquet_path = 'auto_converted_data.parquet'\n    df = pd.read_parquet(parquet_path)\n    print(\"\u5df2\u4f7f\u7528 Parquet \u683c\u5f0f\u52a0\u901f\u8bfb\u53d6\u5927\u6587\u4ef6\u3002\")\nelse:\n    df = pd.read_excel(file_path, sheet_name='Sheet1', header=0)\n    print(\"\u6587\u4ef6\u8f83\u5c0f\uff0c\u4f7f\u7528\u5e38\u89c4\u65b9\u5f0f\u8bfb\u53d6\u3002\")\n```\n\nStep2 \u5bf9\u76ee\u6807\u5217\u8fdb\u884c\u6761\u4ef6\u7b5b\u9009\uff0c\u5e76\u6309\u5206\u7ec4\u5217\u8fdb\u884c\u5206\u7c7b\u6c47\u603b\uff08\u5305\u542b\u5360\u6bd4\u4e0e\u603b\u8ba1\uff09\u3002\n```python\ntarget_col = '\u76ee\u6807\u5217\u540d'  # \u793a\u4f8b\uff1a'\u5371\u9669\u7ea7\u522b'\ngroup_col = '\u5206\u7ec4\u5217\u540d'   # \u793a\u4f8b\uff1a'\u5206\u9879\u5de5\u7a0b'\ntarget_value = 'TARGET_VALUE'  # \u793a\u4f8b\uff1a'\u2605\u2605\u2605\u2605'\n\n# \u7b5b\u9009\u5305\u542b\u7279\u5b9a\u503c\u7684\u8bb0\u5f55\ndf_filtered = df[df[target_col].astype(str).str.contains(target_value, na=False)].copy()\n\n# \u5206\u7c7b\u6c47\u603b\nresult = df_filtered[group_col].value_counts()\nresult_df = pd.DataFrame({\n    group_col: result.index,\n    '\u6570\u91cf': result.values\n})\n\n# \u8ba1\u7b97\u5360\u6bd4\u5e76\u6dfb\u52a0\u603b\u8ba1\u884c\nif not result_df.empty:\n    result_df['\u5360\u6bd4'] = (result_df['\u6570\u91cf'] \/ result_df['\u6570\u91cf'].sum()).apply(lambda x: f\"{x:.2%}\")\n    total_row = pd.DataFrame({\n        group_col: ['\u603b\u8ba1'], \n        '\u6570\u91cf': [result_df['\u6570\u91cf'].sum()], \n        '\u5360\u6bd4': ['100.00%']\n    })\n    result_df = pd.concat([result_df, total_row], ignore_index=True)\n```\n\nStep3 \u5bfc\u51fa\u6c47\u603b\u7ed3\u679c\u5e76\u751f\u6210\u4e0b\u8f7d\u94fe\u63a5\u3002\n```python\noutput_path = 'filtered_summary_output.xlsx'\n\n# \u5c06\u5206\u7c7b\u6c47\u603b\u7ed3\u679c\u4fdd\u5b58\u4e3a\u8868\u683c\u6587\u4ef6\nresult_df.to_excel(output_path, index=False)\n\n# \u8f93\u51fa\u4e0b\u8f7d\u94fe\u63a5\u4f9b\u7528\u6237\u83b7\u53d6\nprint(\"\u6570\u636e\u5904\u7406\u4e0e\u5206\u7c7b\u6c47\u603b\u5b8c\u6210\u3002\")\nprint(f\"\u4e0b\u8f7d\u94fe\u63a5: {output_path}\")\n```\n","use_cases":["Process Excel files with more than 10,000 rows, automatically convert to Parquet format to improve reading speed.","Perform conditional filtering on specific columns, such as filtering records where 'Risk Level' is '\u2605\u2605\u2605\u2605'.","Perform categorization summary by grouping columns, calculate counts and proportions, and generate a total row.","Export the processed results as an Excel file and generate a download link for users to access."],"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-table-styling\/table-theme-styling\/SKILL.md","source_commit":"07e7ff8c4bdfd7b79e7402fe94af59d2a5a9749b","license":null,"version":null,"listing_approved_at":"2026-11-16","created_at":"2026-11-15T09:58:13.000000Z","updated_at":"2026-11-16T05:16:30.000000Z","seo_title":"Excel Large File Conditional Filtering and Categorization Summary Tool","seo_description":"Efficiently process large Excel files, support Parquet format for faster reading, and achieve conditional filtering and categorization summary, suitable for data analysis","seo_keywords":["Excel Large File Processing","Parquet Format Conversion","Conditional Filtering and Categorization Summary","Excel Data Analysis Tool","Data Statistics and Export"]}}