CSV Read

Read a CSV or XLSX file and return columns, shape, dtypes, and first N rows as JSON.

lamm-mit d34edb1 2 files · 1.4 KB Updated

File contents

csv-read

Load a CSV or Excel file using pandas and return a JSON preview including column names, shape, data types, and the first N rows.

Usage

python3 scripts/csv_read.py --path /data/results.csv --max-rows 50

Output

JSON with keys: columns, shape, dtypes, data (list of rows).

lamm-mit/scienceclaw/tree/main/skills/csv-read commit d34edb1e9c

Frequently asked questions

npx skillmds@latest add lamm-mit/csv-read