360 Secure SkillHub
360 安全技能中心

csv-profiler

该 Skill 面向 CSV、TSV 或现有 DataFrame,先检测分隔符、编码和表头,再分类列类型,输出数值、分类和日期列的统计摘要,标记缺失、混合类型、重复行和离群值,最后建议删除、填充、类型转换和去重等清洗步骤。

widoxm
widoxm
热度 14.22
最近更新 2026-08-31 20:34:26
分类:数据依赖:读写文件应用场景:数据处理 / 报告撰写

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add csv-profiler
Metadata
name
csv-profiler
description
Profile and analyze CSV or other tabular data — column types, summary statistics, missing values, and anomalies. Use when the user needs to understand, clean, or sanity-check a dataset.

CSV Profiler

Turn a raw CSV (or TSV, or an existing DataFrame) into a clear profile of what the data actually contains.

Workflow

  1. Load and detect. Read the file; detect delimiter, encoding, and header. Report row and column counts.

  2. Classify columns. For each column, assign a type: numeric, datetime, categorical, boolean, or free text.

  3. Summarize. For each column report:

    • Numeric: min, max, mean, median, missing count, distinct count.
    • Categorical: top values with counts, distinct count, missing count.
    • Datetime: min/max range and count of unparseable values.
  4. Flag anomalies. Call out:

    • Missing or empty values, and all-null columns.
    • Mixed types within a single column.
    • Duplicate rows and near-duplicate keys.
    • Outliers beyond roughly 1.5×IQR.
  5. Recommend. Suggest concrete cleaning steps (drop, fill, cast, dedupe) and note which columns look usable as identifiers or join keys.