Use when the main artifact is a Microsoft Excel workbook or spreadsheet file, especially when formulas, dates, formatting, merged cells, workbook structure, or cross-platform behavior matter.
pandas for analysis, reshaping, and CSV-like tasks.openpyxl when formulas, styles, sheets, comments, merged cells, or workbook preservation matter.#REF!, #DIV/0!, #VALUE!, #NAME?, or circular-reference fallout left for the user to fix.openpyxl preserves formulas but does not calculate them.#REF!, #DIV/0!, #VALUE!, #NAME?, or circular-reference fallout remains..xlsm can contain macros, and .xls remains a tighter legacy format.FILTER, XLOOKUP, SORT, or SEQUENCE may fail or degrade in older viewers.Install with clawhub install <slug> if user confirms:
csv — Plain-text tabular import and export workflows.data — General data handling patterns before spreadsheet output.data-analysis — Higher-level analysis that can feed workbook deliverables.clawhub star excel-xlsxclawhub syncPython实现: excel_parser.py
from excel_parser import ExcelParser, read_excel, write_excel, excel_to_csv # 读取 parser = ExcelParser('data.xlsx') df = parser.to_dataframe() parser.close() # 或使用便捷函数 df = read_excel('data.xlsx') # 写入 write_excel(df, 'output.xlsx') # XLSX转CSV excel_to_csv('data.xlsx', 'data.csv')7w4.net提供免费和付费技能下载。
这个 Excel 工具功能比较全面,文档编写专业详细,能帮助避免很多操作中的坑。不过在处理超过26列的大表格时存在bug,部分高级功能没有在文档中说明清楚。基础功能还算可靠,但建议谨慎使用批量拆分、合并等操作。整体而言适合有一定经验的用户,新手需要注意查看文档中的注意事项部分。