用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ffsshhttiikk/opencode-agents-skills --skill wrangling命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | wrangling |
| description | Data wrangling fundamentals |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"data-analysts","category":"data-science"} |
Use me when:
import pandas as pd
# Pivot/Unpivot
pivot_df = df.pivot(index="date", columns="product", values="sales")
melted = pd.melt(df, id_vars=["id"], value_vars=["q1","q2","q3","q4"])
# String operations
df["email_domain"] = df["email"].str.split("@").str[1]
df["name_clean"] = df["name"].str.strip().str.title()
# Conditional logic
df["segment"] = np.where(df["income"] > 100000, "Premium",
np.where(df["income"] > 50000, "Standard", "Basic"))
# Apply custom functions
def categorize(age):
if age < 18: return "minor"
elif age < 65: return "adult"
return "senior"
df["age_category"] = df["age"].apply(categorize)
# Rolling calculations
df["rolling_avg"] = df["sales"].rolling(window=7).mean()
df["pct_change"] = df["sales"].pct_change()