AGENT SKILL
spreadsheets
Analyze CSV and Excel files with pandas, and write formatted .xlsx workbooks.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 154
- Forks
- 17
01 前言 Front Matter
- name
- spreadsheets
- description
- Analyze CSV and Excel files with pandas, and write formatted .xlsx workbooks.
03 SKILL.md 正文
Spreadsheets
Read
- CSV:
pd.read_csv("/mnt/data/uploads/<name>.csv"). If parsing fails, retry withsep=None, engine="python"orencoding="latin-1". - Excel:
pd.read_excel(path, sheet_name=None)returns every sheet as a dict. - Look before you compute: print
df.shape,df.dtypesanddf.head(). Convert numbers and dates explicitly withpd.to_numeric(..., errors="coerce")andpd.to_datetime(..., errors="coerce").
Analyze
- Compute every number you report. Never estimate totals or averages by reading rows.
- Print small, labeled result tables (
df.to_string()ortabulate) so the answer can quote them. - State how many rows were dropped or could not be parsed.
Write .xlsx
- Simple export:
df.to_excel("/mnt/data/outputs/<name>.xlsx", index=False). - Formatted workbooks: use
pd.ExcelWriter(path, engine="xlsxwriter")to set number formats, column widths, a frozen header row and autofilter. - openpyxl writes formulas without their results; cells show values only after Excel recalculates. When the user needs numbers immediately, write computed values (and add the formula alongside if they asked for one).
- To edit an existing workbook and keep its formatting, open it with
openpyxl.load_workbookand save to outputs under a new name.
Check
Reopen the saved file and print its sheet names and first rows before telling the user it is ready.
04 同仓库更多 Skills
word-documents
Create, convert and edit Word (.docx) documents with python-docx, and pandoc on the full image.
★ 154
presentations
Create and edit PowerPoint (.pptx) decks with python-pptx.
★ 154
Extract text and tables from PDFs, merge, split or rotate pages, render pages to images, and create PDFs.
★ 154
images
暂无简介
★ 154
charts
Make clear charts with matplotlib; plt.show() returns them as images.
★ 154
overtchat-test-skill
Overtchat RPC integration skill
★ 154