refactor:pandas
✓重構 Pandas 代碼以提高可維護性、可讀性和性能。識別並修復應該矢量化的循環/.iterrows()、在存在矢量化替代方案的情況下過度使用 .apply()、鍊式索引模式、inplace=True 用法、低效的 dtypes、缺少方法鏈接機會、複雜的過濾器、未經驗證的合併操作以及SettingWithCopyWarning 模式。應用 Pandas 2.0+ 功能,包括 PyArrow 後端、寫入時復制、矢量化操作、方法鏈接、.query()/.eval()、優化的數據類型和管道模式。
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
詳情
- 分類
- {}資料分析
- 來源
- skills.sh
- 收錄時間
- 2026-02-06