# CSV Read

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

- Skill: `lamm-mit/csv-read` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add lamm-mit/csv-read`
- Raw SKILL.md: https://api.skillmd.com/api/skills/lamm-mit/csv-read/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: lamm-mit (https://skillmd.com/u/lamm-mit)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/lamm-mit/csv-read

---


# 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

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

## Output

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

