agentleFS
28672032962867203296/hermes-agent/skills/software-development/data-engineering/SKILL.md

data-engineering

Skill0 starsChanged 3 months agoMITView on GitHub

数据处理:ETL流水线、Pandas速查、大文件处理、流式读取.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use security-audit, frontend-design and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • CloudflareSkill

    security-audit

    Security guidance and vulnerability review for codebases, APIs, services, CLI tools, libraries, and daemons. Use for security questions, focused reviews, vulnerability research, security audits, or pen tests. Run the complete workflow only for explicit codebase audit or pen-test requests, full/comprehensive/end-to-end reviews, or requested report artifacts.

    Also in 3 projects that use this

  • VercelSkill

    frontend-design

    Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.

    Also in 3 projects that use this

  • GoogleSkill

    code-review

    Adversarial systems, concurrency, memory-model, and architecture code review protocol. Use this skill whenever asked to review code, PRs, diffs, or branches in Filament.

    Also in 3 projects that use this

The file

Files
SKILL.md

数据处理

ETL 流水线

Extract(提取)→ Transform(转换)→ Load(加载)

原始数据(CSV/JSON/API/DB)
  → 清洗(去重、补缺、格式统一)
    → 转换(计算、聚合、关联)
      → 加载到目标(DB/文件/API)

Pandas 速查

import pandas as pd

# 读取
df = pd.read_csv("data.csv")
df = pd.read_json("data.json")
df = pd.read_sql("SELECT * FROM users", conn)

# 查看
df.head(10)           # 前10行
df.info()             # 列类型、空值
df.describe()         # 统计摘要(均值/方差/分位数)
df.shape              # (行数, 列数)

# 选择
df["name"]            # 单列
df[["name", "age"]]   # 多列
df[df["age"] > 18]    # 过滤
df.iloc[0:10]         # 按位置选择

# 转换
df["age"] = df["age"].astype(int)     # 类型转换
df["name"] = df["name"].str.upper()   # 字符串操作
df["score"] = df["score"].fillna(0)   # 填充空值
df.drop_duplicates()                  # 去重

# 聚合
df.groupby("department")["salary"].mean()
df["category"].value_counts()
df.pivot_table(values="sales", index="region", columns="month")

# 合并
pd.merge(users, orders, on="user_id")
pd.concat([df1, df2])

# 导出
df.to_csv("output.csv", index=False)
df.to_json("output.json")
df.to_sql("users", conn, if_exists="replace")

大文件处理(内存放不下)

# 逐块读 CSV
for chunk in pd.read_csv("big.csv", chunksize=10000):
    process(chunk)

# 逐行读 JSON
import ijson
with open("big.json") as f:
    for record in ijson.items(f, "item"):
        process(record)

# 流式读文件
with open("big.txt") as f:
    for line in f:       # 一次只读一行到内存
        process(line)

常见数据问题

1. 空值:df.fillna() / df.dropna()
2. 重复:df.drop_duplicates()
3. 类型错误:df["col"].astype()
4. 编码问题:pd.read_csv("file", encoding="utf-8")
5. 日期解析:pd.to_datetime(df["date"])
6. 异常值:Q1-1.5*IQR < x < Q3+1.5*IQR

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.