文档

CSV Inspect

试用

Inspect delimited tables (CSV/TSV) before any analysis: column names, encodings, delimiters, row counts, inferred types, and first/last rows. Use when the user asks to peek a CSV, list headers, show head/tail, preview schema, check dtypes, or before pandas work on .csv/.tsv/.tab files. Use when the user runs /csv-inspect. Do not use for Excel workbooks (.xlsx) or for writing statistical reports — inspect only, then stop or hand off.

它能做什么

Inspect delimited tables (CSV/TSV) before any analysis: column names, encodings, delimiters, row counts, inferred types, and first/last rows. Use when the user asks to peek a CSV, list headers, show head/tail, preview schema, check dtypes, or before pandas work on .csv/.tsv/.tab files. Use when the user runs /csv-inspect. Do not use for Excel workbooks (.xlsx) or for writing statistical reports — inspect only, then stop or hand off.

技能文档

CSV Inspect

Read schema and samples, not the whole file. Do not start analysis until this output exists.

When to use

  • User wants headers, preview rows, shape, encoding, or delimiter
  • Any later step will parse a .csv / .tsv / .tab / .txt table

Stop after inspect if that was the whole request. For rankings, z-scores, or a written report, inspect first, then use a separate analysis path.

Command

csv-inspect must be on PATH. Run it in the shell. Do not call scripts/csv-inspect. Do not prefix with python3. Do not reimplement this inspect in Python.

csv-inspect /path/to/some.csv
csv-inspect /path/to/some.csv --head 10 --tail 3
csv-inspect /path/to/some.csv --json

Do not cat / read the raw file to "see columns". Do not load the table into pandas just to print columns or head.

What you must take from the output

  • names: use these strings exactly (case, spaces, punctuation)
  • encoding / delimiter: pass the same when you later open / read_csv
  • types: inferred from --scan rows (default 200). date includes YYYY-MM period strings — do not treat them as Excel serials; split or to_datetime explicitly. sample values may come from later rows too.
  • rows: data rows only (header excluded unless --no-header)

Hard rules

  1. Inspect before any groupby / z-score / report write.
  2. Failures must show a traceback. Do not wrap the first parse in except Exception as e: print(e).
  3. Never dump a large table into the transcript. --head defaults to 5; raise it only if the user asked for more.
  4. If columns is 1 and values contain ; or \t, re-run with the printed delimiter or inspect a larger sample — the sniffer can be wrong on tiny files.
  5. After a successful inspect, do not re-inspect in a loop. Proceed or stop.

Done criteria

  • csv-inspect was run on the target file via the shell
  • Column names in later code match names exactly
  • Raw file was not bulk-read into context
  • If the user only asked for preview/schema, you stopped after the inspect output

相关技能

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 工具集 v1.1.0 — 子命令+安全增强。 预览、筛选、排序、合并、分割、去重、验证、统计、 列操作(重命名/选择/计算列)、类型检测、数据画像、抽样。 纯Python标准库(csv模块),无外部依赖。 Use when: - 需要快速处理CSV文件(预览/筛选/排序/统计) - 合并多个CSV文件或分割大CSV文件 - CSV数据去重、列操作、类型检测、数据画像 Do NOT use when: - 非CSV格式数据(JSON/YAML/Excel/数据库) - 需要写回原始输入文件 - 简单的数据查看(推荐用 cat/head 等系统命令) 🎉 v1.1.0 新增子命令:

上传数据文件,直接拿到图表、清洗后的数据集、统计报告和可视化看板,代码在后台自动执行。

114 次安装5 星标

CSV数据分析免费版,提供快速统计与基础筛选,零外部依赖,适合轻量数据探索。Use when 需要数据分析、报表生成、统计洞察、数据可视化时使用。不适用于实时流数据处理。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。输出结果可直接使用,减少二次加工成本。提供结构化输出和错误处理机制。

1 次安装

自动检测编码与分隔符,读取并清洗CSV数据,支持基础合并与导出。Use when 需要数据分析、报表生成、统计洞察、数据可视化时使用。不适用于实时流数据处理。适用于独立开发者、企业团队和自动化工作流场景。支持中文交互,无需复杂配置即开即用。输出结果可直接使用,减少二次加工成本。提供结构化输出和错误处理机制。

DataGate parses untrusted CSV or JSON through a deterministic tool boundary before model analysis. Use for requests like "analyze this CSV", "summarize this...

13 次安装