Analyze, transform, and clean DataFrames with efficient patterns for filtering, grouping, merging, and pivoting.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pandas或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pandas⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pandas/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: Pandas slug: pandas version: 1.0.1 homepage: https://clawic.com/skills/pandas description: Analyze, transform, and clean DataFrames with efficient patterns for filtering, grouping, merging, and pivoting. metadata: {"clawdbot":{"emoji":"🐼","requires":{"bins":["python3"]},"os":["linux","darwin","win32"]}} ---
On first use, create ~/pandas/ and read setup.md for initialization. User preferences are stored in ~/pandas/memory.md — users can view or edit this file anytime.
User needs to work with tabular data in Python. Agent handles DataFrame operations, data cleaning, aggregations, merges, pivots, and exports.
Memory lives in ~/pandas/. See memory-template.md for structure.
~/pandas/
├── memory.md # User preferences and common patterns
└── snippets/ # Saved code patterns (optional)
| Topic | File | |-------|------| | Setup process | setup.md | | Memory template | memory-template.md |
for loops over DataFrame rows.apply() only when vectorized alternatives don't existdf['col'].str.method() over apply(lambda x: x.method())# Good: method chaining
result = (df
.query('age > 30')
.groupby('city')
.agg({'salary': 'mean'})
.reset_index())
# Bad: intermediate variables everywhere
filtered = df[df['age'] > 30]
grouped = filtered.groupby('city')
result = grouped.agg({'salary': 'mean'}).reset_index()
df.isna().sum() before analysisdropna(), fillna(), or interpolation# Memory savings for columns with few unique values
df['status'] = df['status'].astype('category')
df['country'] = df['country'].astype('category')
# Always specify how and validate
result = pd.merge(
df1, df2,
on='id',
how='left',
validate='m:1' # Many-to-one: catch unexpected duplicates
)
# Readable
df.query('age > 30 and city == "NYC" and salary < 100000')
# Hard to read
df[(df['age'] > 30) & (df['city'] == 'NYC') & (df['salary'] < 100000)]
# Faster lookups, cleaner merges
df = df.set_index('user_id')
user_data = df.loc[12345] # O(1) lookup
.loc[] for assignment: df.loc[mask, 'col'] = valueiterrows() with vectorized ops or apply()dtype in read_csv(): pd.read_csv(f, dtype={'id': 'int32'})print(f"Before: {len(df1)}, After: {len(result)}")reset_index() after groupby() to get clean DataFramedf['a']['b'] fails silently; use df.loc[:, ['a', 'b']]Data storage:
~/pandas/memory.mdThis skill does NOT:
~/pandas/ and the working directoryUser control:
cat ~/pandas/memory.mdrm -rf ~/pandas/Install with clawhub install if user confirms:
data-analysis — general data analysis patternscsv — CSV file handlingsql — database queriesexcel-xlsx — Excel file operationsclawhub star pandasclawhub sync安装 Pandas 后,可以对 AI 说这些话来触发它
Help me get started with Pandas
Explains what Pandas does, walks through the setup, and runs a quick demo based on your current project
Use Pandas to analyze, transform, and clean DataFrames with efficient patterns fo...
Invokes Pandas with the right parameters and returns the result directly in the conversation
What can I do with Pandas in my data & analytics workflow?
Lists the top use cases for Pandas, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pandas/ 目录(个人级,所有项目可用),或 .claude/skills/pandas/(项目级)。重启 AI 客户端后,用 /pandas 主动调用,或让 AI 根据上下文自动发现并使用。
Pandas 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Pandas 可免费安装使用。请查阅仓库了解许可证信息。
Analyze, transform, and clean DataFrames with efficient patterns for filtering, grouping, merging, and pivoting.
Pandas 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Pandas
Identifies repetitive steps in your workflow and sets up Pandas to handle them automatically