Expert pandas skill for data manipulation, cleaning, analysis, and transformation. Use this skill when working with tabular data, CSV/Excel files, data analy...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install pandas-skill或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install pandas-skill⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/pandas-skill/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: pandas-skill description: Expert pandas skill for data manipulation, cleaning, analysis, and transformation. Use this skill when working with tabular data, CSV/Excel files, data analysis tasks, or any data processing workflow that involves pandas DataFrames. Provides executable scripts for common operations and comprehensive reference documentation. ---
English | 简体中文
This skill provides comprehensive pandas data processing capabilities through executable scripts and reference documentation. Use this skill whenever tasks involve data manipulation, cleaning, analysis, or transformation of tabular data.
Activate this skill when the user requests:
scripts/data_cleaner.py)
Handles common data cleaning tasks with a single command:
Usage:
python scripts/data_cleaner.py input.csv output.csv [options]
Available Options:
--remove-duplicates: Remove duplicate rows
--handle-missing [strategy]: Handle missing values
- Strategies: drop, fill, forward, backward, mean, median
--fill-value [value]: Custom fill value for missing data
--remove-outliers: Remove outliers using IQR or Z-score method
--outlier-method [method]: Choose iqr or zscore (default: iqr)
--standardize-columns: Standardize column names (lowercase, underscores)
Example:
python scripts/data_cleaner.py data.csv cleaned_data.csv \
--remove-duplicates \
--handle-missing mean \
--remove-outliers \
--standardize-columns
scripts/data_analyzer.py)
Generates comprehensive data analysis reports:
Usage:
python scripts/data_analyzer.py input.csv [options]
Available Options:
--output, -o [file]: Save report to file
--format [format]: Output format (json or text, default: json)
Report Includes:
Example:
python scripts/data_analyzer.py sales_data.csv -o report.json --format json
scripts/data_transformer.py)
Performs various data transformation operations through subcommands:
python scripts/data_transformer.py convert input.csv output.xlsx
Supports: CSV, Excel (.xlsx/.xls), JSON, Parquet, HTML
python scripts/data_transformer.py merge file1.csv file2.csv file3.csv \
--output merged.csv \
--how outer \
--on key_column
python scripts/data_transformer.py filter data.csv \
--query "age > 18 and city == 'Beijing'" \
--output filtered.csv
python scripts/data_transformer.py sort data.csv \
--by sales quantity \
--descending \
--output sorted.csv
python scripts/data_transformer.py select data.csv \
--columns name age city \
--output selected.csv
The references/ directory contains detailed documentation:
references/common_operations.md
Comprehensive reference covering:
When to use: When Claude needs to understand pandas syntax or find the right method for a specific operation.
references/data_cleaning_best_practices.md
Best practices guide covering:
When to use: When designing a data cleaning workflow or deciding on the best approach for specific data quality issues.
Always start by analyzing the data:
python scripts/data_analyzer.py input_file.csv -o analysis_report.json
Review the report to understand data quality, types, missing values, and potential issues.
Based on the analysis report:
data_cleaning_best_practices.md)
Run the data cleaner with appropriate options:
python scripts/data_cleaner.py input.csv cleaned.csv [options]
Apply any transformations (filtering, sorting, format conversion, merging):
python scripts/data_transformer.py [subcommand] [options]
Re-run analysis on the cleaned data to verify improvements:
python scripts/data_analyzer.py cleaned.csv -o final_report.json
python scripts/data_analyzer.py data.csv --format text
python scripts/data_cleaner.py raw_data.csv clean_data.csv \
--standardize-columns \
--remove-duplicates \
--handle-missing median \
--remove-outliers
# Convert
python scripts/data_transformer.py convert data.xlsx data.csv
# Filter
python scripts/data_transformer.py filter data.csv \
--query "status == 'active'" \
--output filtered.csv
python scripts/data_transformer.py merge *.csv \
--output combined.csv
Ensure pandas is installed:
pip install pandas numpy openpyxl
Optional for specific formats:
pip install pyarrow # For Parquet support
pip install xlrd # For older Excel files (.xls)
Import errors: Ensure pandas and dependencies are installed
Memory errors: Process data in chunks or optimize dtypes (see references)
Encoding issues: Add encoding='utf-8' parameter when loading CSVs
Date parsing issues: Use pd.to_datetime() with explicit format string
For detailed pandas operations and troubleshooting, always refer to references/common_operations.md and references/data_cleaning_best_practices.md.
安装 Pandas Skill 后,可以对 AI 说这些话来触发它
Help me get started with Pandas Skill
Explains what Pandas Skill does, walks through the setup, and runs a quick demo based on your current project
Use Pandas Skill to expert pandas skill for data manipulation, cleaning, analysis, and ...
Invokes Pandas Skill with the right parameters and returns the result directly in the conversation
What can I do with Pandas Skill in my data & analytics workflow?
Lists the top use cases for Pandas Skill, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/pandas-skill/ 目录(个人级,所有项目可用),或 .claude/skills/pandas-skill/(项目级)。重启 AI 客户端后,用 /pandas-skill 主动调用,或让 AI 根据上下文自动发现并使用。
Pandas Skill 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Pandas Skill 可免费安装使用。请查阅仓库了解许可证信息。
Expert pandas skill for data manipulation, cleaning, analysis, and transformation. Use this skill when working with tabular data, CSV/Excel files, data analy...
Pandas Skill 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using Pandas Skill
Identifies repetitive steps in your workflow and sets up Pandas Skill to handle them automatically