data-analysis
Skill1 starsChanged 31 days agoApache-2.0View on GitHub
用 pandas 对 CSV/Excel 做数据清洗与分析(缺失值、去重、类型转换、分组聚合)、画图(matplotlib,含中文字体配置)和透视表。当用户拿来 CSV/Excel 说想做分析、清洗、统计汇总、画图表或做透视表时使用。
- Installs packages
76 other projects use a version of this.
Adopted by
Most recently taken up by
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Nov 8, 2026
- zakirkun/slayerclawtheir own version, first seen Nov 8, 2026
- notegpt-official/notegpt-skillstheir own version, first seen Nov 6, 2026
- CatCatUncle/openworkbuddytheir own version, first seen Nov 5, 2026
- flonat/flonat-researchtheir own version, first seen Nov 3, 2026
- AgnesAI-Labs/agnet-skills-cntheir own version, first seen Nov 1, 2026
Used with
Projects with it also use algorithm-design, review-r and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
lingzhi227Skillalgorithm-design
Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments, Mermaid class/sequence diagrams, and ensure consistency between pseudocode and implementation. Use when formalizing methods for a paper.
Also in 5 projects that use this
luischanciSkillreview-r
Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.
Also in 4 projects that use this
zephyrwang6Skilldeepl
Übersetzt Texte, Dokumente und XLIFF-Dateien via DeepL API. Verwende für Übersetzungen mit /deepl translate, /deepl file oder /deepl xliff.
Also in 4 projects that use this
zephyrwang6Skillimagemagick-conversion
Convert and manipulate images with ImageMagick. Covers format conversion, resizing, batch processing, quality adjustment, and image transformations. Use when user mentions image conversion, resizing images, ImageMagick, magick command, batch image processing, or thumbnail generation.
Also in 4 projects that use this
lingzhi227Skilllatex-formatting
Handle LaTeX formatting, templates, and styling for academic papers. Set up conference templates (ICML, ICLR, NeurIPS, AAAI, ACL), fix formatting issues, manage packages, and ensure venue-specific compliance. Use when the user needs to set up a paper template, fix LaTeX formatting, or prepare for submission.
Also in 4 projects that use this
stophobiaSkillsurprise-me
Create a delightful, unexpected "wow" experience for the user by dynamically discovering and creatively combining other enabled skills. Triggers when the user says "surprise me" or any request expressing a desire for an unexpected creative showcase. Also triggers when the user is bored, wants inspiration, or asks for "something interesting".
Also in 4 projects that use this
- +3 more from zephyrwang6
- +2 more from lingzhi227
Other versions76 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 76
- bytedance/deer-flow★ 85ksame name
- pedrohcgs/claude-code-my-workflow★ 1.7ksame name
- fastclaw-ai/fastclaw★ 1.4ksame name
- stophobia/deerflow2.0-enhanced★ 821same name
- EvovexAI/EvoFlow★ 612same name
- claude-office-skills/skills★ 433same name
- CatCatUncle/openworkbuddy★ 398same name
- lingzhi227/agent-research-skills★ 350same name
- zephyrwang6/myskill★ 339same name
- duyet/clickhouse-monitoring★ 303same name
66 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- llms.txtllms.txt
- academic-figuresSkill
- citation-managementSkill
- cn-literatureSkill
- cpp-workflowSkill
- design-materialSkill
- doc-batchSkill
- email-calendarSkill
- lab-reportSkill
- math-modelingSkill
- meeting-notesSkill
- office-docsSkill
- paper-researchSkill
- python-workflowSkill
- study-tutorSkill
- thesis-formatSkill
- web-researchSkill
The file
Files
数据分析工作流
0. 依赖与读入
python3 -m pip install pandas matplotlib openpyxlimport pandas as pd
df = pd.read_csv("data.csv", encoding="utf-8") # 中文 CSV 常需指定编码
df = pd.read_excel("data.xlsx", sheet_name=0)读中文 CSV 报 UnicodeDecodeError 时,依次试 encoding="utf-8-sig"、"gbk"。先确认编码再读,别反复瞎试。
第一件事永远是看数据长什么样:
df.shape # 行列数
df.head() # 前几行
df.info() # 列名、类型、非空数量
df.describe() # 数值列统计
df.isna().sum() # 每列缺失数1. 清洗(按顺序)
- 列名规范:
df.columns = df.columns.str.strip(),去空格、统一命名 - 去重:
df = df.drop_duplicates(),必要时指定subset=["id"] - 类型转换:
pd.to_numeric(df["score"], errors="coerce")(转不了的变 NaN 而不是报错);日期用pd.to_datetime(df["date"], errors="coerce") - 缺失值:先判断是「真缺」还是「有隐含含义」
- 删除:
df.dropna(subset=["关键列"]) - 填充:
df["x"].fillna(df["x"].median());类别列用众数df["c"].fillna(df["c"].mode()[0]) - 不要无脑
fillna(0),会污染统计结果
- 删除:
- 异常值:先用
df.describe()看极值是否合理,再决定删除或保留;删值要记录口径 - 文本列:
df["name"] = df["name"].str.strip(),统一大小写
每步做完打印一次 df.shape 和受影响列,确保改动符合预期。
2. 分组聚合与透视表
g = df.groupby("班级")["分数"].agg(["count", "mean", "median", "std"])
df.pivot_table(index="班级", columns="科目", values="分数", aggfunc="mean")agg可传列表一次算多个统计量- 分组前确认分组列无缺失、无前后空格,否则会多出奇怪的组
- 多级索引结果用
reset_index()变回普通表,方便导出
3. 画图
先解决中文字体(不配就是一屏方框):
import matplotlib
import matplotlib.pyplot as plt
plt.rcParams["font.sans-serif"] = [
"Noto Sans CJK SC", "Source Han Sans SC",
"PingFang SC", "Heiti SC", "Arial Unicode MS",
"Microsoft YaHei", "SimHei",
]
plt.rcParams["axes.unicode_minus"] = False常用图:
df["分数"].hist(bins=20); plt.title("分数分布"); plt.savefig("hist.png", dpi=150, bbox_inches="tight")
df.groupby("班级")["分数"].mean().plot(kind="bar"); plt.title("各班均分")
plt.scatter(df["x"], df["y"]); plt.xlabel("x"); plt.ylabel("y")要点:
- 无显示环境(服务器)先
matplotlib.use("Agg"),再import pyplot - 保存用
bbox_inches="tight"防止标签被裁掉 - 画完看一眼图,确认中文正常,别只看代码没看结果
4. 结果交付
- 给结论时附上依据:样本量、口径(是否删了缺失 / 异常)、用了什么统计量
- 导出清洗后的数据:
df.to_csv("clean.csv", index=False, encoding="utf-8-sig")(utf-8-sig让 Excel 打开不乱码) - 只描述数据里观察到的事实,不要下因果结论
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

