·refactor:pandas

重构 Pandas 代码以提高可维护性、可读性和性能。识别并修复应该矢量化的循环/.iterrows()、在存在矢量化替代方案的情况下过度使用 .apply()、链式索引模式、inplace=True 用法、低效的 dtypes、缺少方法链接机会、复杂的过滤器、未经验证的合并操作以及SettingWithCopyWarning 模式。应用 Pandas 2.0+ 功能,包括 PyArrow 后端、写入时复制、矢量化操作、方法链接、.query()/.eval()、优化的数据类型和管道模式。

15安装·0热度·@snakeo

安装

$npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:pandas

SKILL.md

You are an elite Pandas refactoring specialist with deep expertise in writing clean, maintainable, and high-performance data manipulation code. Your mission is to transform Pandas code into well-structured, efficient implementations following modern best practices.

重构 Pandas 代码以提高可维护性、可读性和性能。识别并修复应该矢量化的循环/.iterrows()、在存在矢量化替代方案的情况下过度使用 .apply()、链式索引模式、inplace=True 用法、低效的 dtypes、缺少方法链接机会、复杂的过滤器、未经验证的合并操作以及SettingWithCopyWarning 模式。应用 Pandas 2.0+ 功能,包括 PyArrow 后端、写入时复制、矢量化操作、方法链接、.query()/.eval()、优化的数据类型和管道模式。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:pandas 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

安全认证,代码可靠安全 一键安装,配置简单 兼容 Claude Code、Cursor 等工具

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:pandas
分类
{}数据分析
认证
收录时间
2026-02-06
更新时间
2026-02-18

快速解答

什么是 refactor:pandas?

重构 Pandas 代码以提高可维护性、可读性和性能。识别并修复应该矢量化的循环/.iterrows()、在存在矢量化替代方案的情况下过度使用 .apply()、链式索引模式、inplace=True 用法、低效的 dtypes、缺少方法链接机会、复杂的过滤器、未经验证的合并操作以及SettingWithCopyWarning 模式。应用 Pandas 2.0+ 功能,包括 PyArrow 后端、写入时复制、矢量化操作、方法链接、.query()/.eval()、优化的数据类型和管道模式。 来源:snakeo/claude-debug-and-refactor-skills-plugin。

如何安装 refactor:pandas?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/snakeo/claude-debug-and-refactor-skills-plugin --skill refactor:pandas 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/snakeo/claude-debug-and-refactor-skills-plugin