Excel/CSV数据处理全能工具,覆盖办公场景中最常见的Excel操作需求。
python3 scripts/excel_ops.py read input.xlsx --sheet Sheet1 --limit 20
python3 scripts/excel_ops.py clean input.xlsx --dedup --fill-na 0 --strip-whitespace -o cleaned.xlsx
python3 scripts/excel_ops.py merge file1.xlsx file2.xlsx file3.xlsx --mode vconcat -o merged.xlsx
python3 scripts/excel_ops.py filter input.xlsx --where "金额>1000" --where "城市=北京" -o filtered.xlsx
python3 scripts/excel_ops.py pivot input.xlsx --group-by 部门 --agg "薪资:mean" --agg "人数:count" -o pivot.xlsx
python3 scripts/excel_ops.py chart input.xlsx --type bar --x 部门 --y 薪资 -o chart.png
pip install openpyxl pandas matplotlib
完整命令行参数说明见 references/cli-reference.md
| 场景 | 命令示例 |
|---|---|
| ------ | ---------- |
| 去重导出 | excel_ops.py clean data.xlsx --dedup -o deduped.xlsx |
| 多月报表合并 | excel_ops.py merge jan.xlsx feb.xlsx mar.xlsx -o q1.xlsx |
| 筛选大额订单 | excel_ops.py filter orders.xlsx --where "金额>5000" -o big.xlsx |
| 部门统计 | excel_ops.py pivot staff.xlsx --group-by 部门 --agg "薪资:mean" -o stat.xlsx |
| CSV转Excel | excel_ops.py convert data.csv --to xlsx -o data.xlsx |
共 1 个版本