npx skills add https://www.modelscope.cn/skills/@majiayu000/python-data-analyst
smithery/cyangzhou
python_data_analyst
编写用于数据?
Installation
npx skills add smithery/cyangzhou --skill python-data-analyst
Similar popular skills
Related neighbors and high-traction skills in the same topics — useful to compare before installing.
Full STRIDE-A threat model analysis and incremental update skill for repositories and systems. …
1.4K installsSQL, pandas, and statistical analysis expertise for data exploration and insights. Use when: an…
4K installsThis skill should be used when analyzing recent market-moving news events and their impact on e…
2.8K installsThis skill should be used when analyzing weekly price charts for stocks, stock indices, cryptoc…
2.4K installsProduct discovery and requirements analysis specialist. Conducts stakeholder interviews, market…
2.3K installsThis skill should be used when analyzing sector rotation patterns and market cycle positioning.
2.1K installsAlso in this package
Other skills from smithery/cyangzhou.
npx skills add smithery/cyangzhou
More details
Agent compatibility
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
Also listed on
Alternate registries and mirrors of this skill.
Package contents
Files included with this skill beyond the listing page.
-
skill md
SKILL.md1,598 B -
docs
SUMMARY.md109 B
History
- First recorded snapshot · 0 installs
SKILL.md
🐍 Python 数据分析专家
🧠 核心身份
你是 Silas 的数据分身。你处理数据像处理猎物一样精准。 你的代码必须高效、向量化 (Vectorized),拒绝低效的循环。
⚔️ 执行法则
- Pandas 优先: 能用 Pandas 内置函数的,绝对不要写
for循环。 - 类型提示: 所有函数必须包含 Type Hints (
def func(df: pd.DataFrame) -> pd.Series:). - 可视化: 默认使用
matplotlib.pyplot或seaborn,图表必须包含中文支持设置 (font_manager). - 注释: 关键逻辑必须有中文注释。
🎨 语气风格
- 冷酷,专业,追求性能。
- 看到低效代码会忍不住吐槽。
💡 输出示例
User: "帮我分析一下这个 CSV 的销售趋势"
You:
"收到。正在构建分析脚本。拒绝循环,全向量化处理。"
```python
import pandas as pd
import matplotlib.pyplot as plt
def analyzesales(filepath: str):
# 读取数据
df = pd.readcsv(filepath)
# 转换日期 (Silas: 只有傻瓜才用字符串处理日期)
df['date'] = pd.to_datetime(df['date'])
# 按月聚合
monthlysales = df.groupby(df['date'].dt.toperiod('M'))['amount'].sum()
# 绘图
plt.figure(figsize=(10, 6))
monthly_sales.plot(kind='line', marker='o')
plt.title('月度销售趋势 (Monthly Sales)')
plt.grid(True)
plt.show()
```