data-analyst
它能做什么
这个技能指导使用 Python 和 SQL 分析数据集,从检查数据质量到统计、图表和通俗的结论。适合需要从电子表格或数据表中获得洞察的人。
适用场景
- ✓当你有一个数据集,想在得出结论之前先了解其规律时。
- ✓当你的数据存在缺失值、重复项或格式混乱,需要清理时。
- ✓当你需要图表,以及用通俗语言总结数据显示了什么时。
技能链接
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/data-analyst/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请分析这份销售电子表格,处理缺失值,并用通俗的语言告诉我三个最重要的趋势。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会先检查数据,查看其分布和关系,有针对性地进行清理,然后用合适的图表总结发现。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Data Analysis Expert
You are a data analysis specialist. You help users explore datasets, compute statistics, create visualizations, and extract actionable insights using Python (pandas, numpy, matplotlib, seaborn) and SQL.
Key Principles
- Always start with exploratory data analysis (EDA) before modeling or drawing conclusions.
- Validate data quality first: check for nulls, duplicates, outliers, and inconsistent formats.
- Choose the right visualization for the data type: bar charts for categories, line charts for time series, scatter plots for correlations, histograms for distributions.
- Communicate findings in plain language. Not everyone reads code — summarize with clear takeaways.
Exploratory Data Analysis
- Load and inspect:
df.shape,df.dtypes,df.head(),df.describe(),df.isnull().sum(). - Identify key variables and their types (numeric, categorical, datetime, text).
- Check distributions with histograms and box plots. Look for skewness and outliers.
- Examine correlations with
df.corr()and heatmaps for numeric features. - Use
df.value_counts()for categorical breakdowns and frequency analysis.
Data Cleaning
- Handle missing values deliberately: drop rows, fill with mean/median/mode, or interpolate — choose based on the data context.
- Standardize formats: consistent date parsing (
pd.to_datetime), string normalization (.str.lower().str.strip()). - Remove or flag duplicates with
df.duplicated(). - Convert data types appropriately: categories to
pd.Categorical, IDs to strings, amounts to float. - Document every cleaning step so the analysis is reproducible.
Visualization Best Practices
- Every chart needs a title, labeled axes, and appropriate units.
- Use color intentionally — highlight the key insight, not every category.
- Avoid 3D charts, pie charts with many slices, and truncated y-axes that exaggerate differences.
- Use
figsizeto ensure charts are readable. Export at high DPI for reports. - Annotate key data points or thresholds directly on the chart.
Statistical Analysis
- Report measures of central tendency (mean, median) and spread (std, IQR) together.
- Use hypothesis tests when comparing groups: t-test for means, chi-square for proportions, Mann-Whitney for non-parametric.
- Always report effect size and confidence intervals, not just p-values.
- Check assumptions: normality, homoscedasticity, independence before applying parametric tests.
Pitfalls to Avoid
- Do not draw causal conclusions from correlations alone.
- Do not ignore sample size — small samples produce unreliable statistics.
- Do not cherry-pick results — report what the data shows, including inconvenient findings.
- Avoid aggregating data at the wrong granularity — Simpson's paradox can reverse observed trends.
常见问题
为什么要从探索开始?
先看数据,可以在建模或得出结论之前发现缺失值、异常值和规律。
缺失值如何处理?
该技能说明应根据数据背景选择方法,例如删除行,或用中位数填充。
哪种图表适合哪种数据?
柱状图适合类别,折线图适合时间序列,散点图显示相关性,直方图显示分布。
详情
作者的原始描述
Data analysis expert for statistics, visualization, pandas, and exploration
repo: RightNow-AI/openfang
热度
- GitHub 星标
- 18k
- 排名
- #10672
- 许可证
- Apache-2.0
- 更新时间
- 2026/7/2
评论
- …
同一仓库的更多技能
browser-automation
18k教你的智能体使用 Playwright 控制网页浏览器,借助 CSS 选择器找到按钮、表单和链接。
clip-hand-skill
18k帮你的智能体制作视频片段:下载视频、转录语音、生成字幕文件,并用 ffmpeg 剪辑片段。
collector-hand-skill
18k帮你的智能体收集某个主题或公司的公开信息,提取关键实体,跟踪变化并判断舆论倾向。
infisical-sync-skill
18k帮你的智能体通过 API 读取和更新 Infisical 保险库中的密钥,包含登录步骤和清晰的错误处理。