pandas-best-practices by mindrally/skills
npx skills add https://github.com/mindrally/skills --skill pandas-best-practices专注于数据操作、分析和高效 DataFrame 操作的 Pandas 开发专家指南。
pd.read_csv()、pd.read_excel()、pd.read_json() 并配合适当的参数dtype 参数以确保加载时数据类型正确parse_dates 进行自动日期时间解析index_colchunksize 增量读取大文件广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
.loc[] 进行基于标签的索引.iloc[] 进行基于整数位置的索引df['col'][0])- 改用 .loc 或 .ilocdf[df['col'] > value].query() 方法进行复杂过滤.pipe() 来应用自定义函数.assign()、.query()、.groupby()、.agg() 等操作.isna() 和 .info() 检查缺失数据.fillna()、.dropna() 或插补pd.NA.dtypes 验证数据类型并根据需要进行转换.duplicated() 检查重复项并适当处理.describe() 进行快速统计概览.astype() 进行显式类型转换pd.to_datetime() 进行日期解析pd.to_numeric() 并配合 errors='coerce' 进行安全的数值转换.groupby() 进行高效的聚合操作.agg() 指定聚合函数以进行多种操作.transform() 将结果广播回原始形状.pivot_table() 进行多维聚合.melt() 将宽格式转换为长格式.pivot() 将长格式转换为宽格式.stack() 和 .unstack() 进行层次索引操作pd.eval() 和 .eval() 进行大型表达式求值.apply().values 或 .to_numpy() 进行 NumPy 操作.iterrows() 进行迭代 - 使用向量化操作.copy()DatetimeIndex.resample() 进行基于时间的聚合.shift() 和 .diff() 进行滞后操作.rolling() 和 .expanding() 进行窗口计算.merge() 进行 SQL 风格的连接how 参数:'inner'、'outer'、'left'、'right'validate 参数检查连接基数.concat() 堆叠 DataFramesimport pandas as pdsnake_case每周安装数
139
仓库
GitHub 星标数
42
首次出现
2026年1月25日
安全审计
安装于
opencode118
gemini-cli113
codex108
github-copilot102
cursor100
claude-code93
Expert guidelines for Pandas development, focusing on data manipulation, analysis, and efficient DataFrame operations.
pd.read_csv(), pd.read_excel(), pd.read_json() with appropriate parametersdtype parameter to ensure correct data types on loadparse_dates for automatic datetime parsingindex_col when the data has a natural index columnchunksize for reading large files incrementally.loc[] for label-based indexing.iloc[] for integer position-based indexingdf['col'][0]) - use .loc or .iloc insteaddf[df['col'] > value].query() method for complex filtering conditions.pipe() for applying custom functions in a chain.assign(), .query(), .groupby(), .agg().isna() and .info().fillna(), .dropna(), or imputationpd.NA for nullable integer and boolean types.dtypes and convert as needed.duplicated() and handle appropriately.describe() for quick statistical overview.astype() for explicit type conversionpd.to_datetime() for date parsingpd.to_numeric() with errors='coerce' for safe numeric conversion.groupby() for efficient aggregation operations.agg() for multiple operations.transform() for broadcasting results back to original shape.pivot_table() for multi-dimensional aggregation.melt() to convert wide to long format.pivot() to convert long to wide format.stack() and .unstack() for hierarchical index manipulationpd.eval() and .eval() for large expression evaluation.apply() with row-wise functions.values or .to_numpy() for NumPy operations when faster.iterrows() - use vectorized operations.copy() when neededDatetimeIndex for time series data.resample() for time-based aggregation.shift() and .diff() for lag operations.rolling() and .expanding() for window calculations.merge() for SQL-style joinshow parameter: 'inner', 'outer', 'left', 'right'validate parameter to check join cardinality.concat() for stacking DataFramesimport pandas as pdsnake_case for column names when possibleWeekly Installs
139
Repository
GitHub Stars
42
First Seen
Jan 25, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode118
gemini-cli113
codex108
github-copilot102
cursor100
claude-code93
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
48,500 周安装
Encore.ts 入门指南:快速上手 TypeScript 微服务开发与部署
137 周安装
Framer 代码组件与覆盖开发指南:React 组件、属性控件与最佳实践
137 周安装
多智能体编排策略指南:从597+真实调度提炼的元编排模式与提示词构建
137 周安装
Info Card Designer - 自动生成杂志质感信息卡,适配X/Twitter、小红书分享,支持内容密度分析与超长分割
137 周安装
头脑风暴助手 - 使用Gemini AI系统生成创意想法,支持SCAMPER、六顶思考帽等方法
137 周安装
运行时性能审计器 - 异步代码性能优化与反模式检测工具
137 周安装