changan-su/forsion/data-analysis-python
Claude Code and agent skill by changan-su/forsion
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
当需要用 Python/pandas 分析数据文件、做统计聚合或绘制图表时使用,提供标准代码模式与 run_python 使用规范。
Install
npx vskill@latest install changan-su/forsion/data-analysis-pythonSKILL.md
Python 数据分析
run_python 使用原则
- 一次写完整脚本,而非碎片化多轮:把"读取→清洗→分析→输出"写成一个完整脚本一次执行。多轮小片段会浪费轮次且容易丢状态。
- 例外:首次接触未知数据时,允许先跑一个小探查脚本(只看 shape/dtypes/head),据此再写完整分析脚本,总共两轮。
- 脚本里所有结论性数字都要
print出来,图表保存为文件并打印保存路径,不要依赖交互式显示。 - 出错时整体修复脚本重跑,不要打补丁式追加片段。
第一步:探查数据(不要盲写分析)
确认列名、类型、缺失情况后,再写正式分析。
清洗标准模式
原则:每一步清洗丢弃了多少数据必须 print 报告;不擅自用均值填充等改变分布的操作,除非用户同意。
聚合分析标准模式
matplotlib 中文字体处理(必做)
中文标签直接绘图会变方框,先探测可用字体:
若全都不存在,回退方案:图表用英文标签,结论文字里用中文解释。
绘图输出规范:
每张图必有:标题、轴标签(含单位)、tight_layout、保存后 close 防内存累积。
大文件分块处理
文件超过几百 MB 或读入即内存报错时:
配套手段:usecols 只读需要的列、dtype 显式指定省内存、先用 run_bash 跑 wc -l file.csv && head -3 file.csv 了解规模和表头再决定策略。
结论输出规范
- 结论必须由打印出的数字支撑,引用具体数值("3 月环比下降 12.4%"),不说"明显上升"这类含糊话。
- 报告结构:数据概况(行数/时间范围/清洗丢弃量)→ 关键发现(按重要性排序,每条带数字)→ 图表文件路径 → 局限性(缺失数据、口径假设)。
- 对异常值/离群点要点名并给出可能解释,而不是默默忽略。
- 用户要的是答案不是代码:回复以结论为主,代码已执行的细节简述即可。
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingtangu-agent/skills/data-analysis-python/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/changan-su/forsion/data-analysis-python)