Skip to content

Packs / data-science-public

csv-profile

profile a CSV: row count, types, missing values, distinct counts and min/mean/max per column

L2 Checks passed 3 of 3 runsv1.0.0Tech-Realm/space-data-science-public

Install

logicpacks pack use data-science-public/csv-profile
get_pack data-science-public/csv-profile

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: python-stdlibpandas
  • Checks: 1 in outcome/checks.yaml
  • Code: profile.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from spec/SPEC.md)

Goal

Profile a CSV: row count, types, missing values, distinct counts and min/mean/max per column.

Steps

  1. Run python3 code/profile.py data.csv before any analysis.
  2. Note columns with high missing rates or unexpected types.
  3. Decide cleaning rules (drop, impute, cast) and write them down.

Edge cases

  • Numbers with thousands separators or currency symbols read as text.
  • Very large files: use the pandas route.

Don'ts

  • Don't impute before you know why values are missing.

Routes (free first)

  1. python-stdlib: code/profile.py (no install).
  2. pandas (free): same job in pandas for large files (pip install pandas)