# csv-profile

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

- **Space:** data-science-public (https://github.com/Tech-Realm/space-data-science-public/tree/main/csv-profile)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib, pandas; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use data-science-public/csv-profile` or MCP `get_pack data-science-public/csv-profile`
- **Files:** CHANGELOG.md, code/profile.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/d.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (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)



---

Canonical URL: https://logicpacks.io/packs/data-science-public/csv-profile

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
