How to get a first look at a new CSV without writing pandas
Quando usar: You got handed a CSV and need to understand what's in it before doing anything else.
Fluxo
-
Point Claude at the fileSummarize data/sales_2024.csv — columns, nulls, and basic stats.✓ Copiado→ Per-column dtype, null %, min/max or top values
-
Ask for missing-data diagnosisWhich columns have systematic nulls? Any row-level patterns?✓ Copiado→ Specific columns flagged, not vague 'some nulls'
-
Request quick visualsSave histograms for all numeric columns into ./charts/.✓ Copiado→ PNG files on disk
Resultado: A one-page mental model of the dataset in under 5 minutes.
Armadilhas
- Huge CSVs blow the token budget — Have Claude read a sample (nrows=10000) for exploration, run stats on the full file in Python
- Dtype misinference (dates read as strings) — Tell Claude which columns are dates — pandas parse_dates helps