Packs / data-science-public
csv-profile
profile a CSV: row count, types, missing values, distinct counts and min/mean/max per column
Install
logicpacks pack use data-science-public/csv-profileget_pack data-science-public/csv-profileThe 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
- Run
python3 code/profile.py data.csvbefore any analysis. - Note columns with high missing rates or unexpected types.
- 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)
python-stdlib:code/profile.py(no install).pandas(free): same job in pandas for large files (pip install pandas)