excel-clean

👤 martin-sh-ni 📦 v1.0.0 ⭐ 0.0 ⬇️ 780 下載
📊 資料分析 免費

📖 技能介紹


name: Excel Cleaner description: Clean Excel data — deduplication, fill missing values, format conversion.


Excel Cleaner(Excel資料清洗)

去重 / 空值填充 / 格式轉換 | Pandas驅動

小蔥技能有更好的技能skills外掛。

功能 | Features

  • 批次去重 — 按指定列組合去重
  • 空值填充 — 支援填充固定值、前值、後值
  • 格式轉換 — 數值/文本/日期格式互轉
  • 保留原檔案 — 輸出為 _cleaned.xlsx,原檔案不變

使用場景 | Use Cases

場景 說明
名單去重 刪除重複客戶/訂單記錄
資料補全 用"未知"或0填充空值
格式標準化 日期統一為 YYYY-MM-DD

使用方式 | Usage

輸入引數:
  file_path       Excel檔案路徑
  dedup_cols      去重列名列表(可選)
  fill_value      空值填充內容(可選)
  convert_type    格式型別轉換(可選)

輸出:
  success         是否成功
  output          輸出檔案路徑
  rows            處理後行數

示例 | Example

result = excel_clean(
    file_path="/data/orders.xlsx",
    dedup_cols=["訂單號", "手機號"],
    fill_value="未知",
    convert_type="日期:YYYY-MM-DD"
)

依賴 | Dependencies

pandas >= 1.3.0
openpyxl >= 3.0.0

版本 v1.0

📁 包含檔案 (2 個)

📄 SKILL.md 1.3 KB
📄 _meta.json 130 B