CSV Processor

csv-processor

ondrej-merkun 22e7924 2 files · 1.9 KB Updated

File contents

csv-processor

Reads, filters, aggregates, and converts CSV files using Python's stdlib csv module.

Commands:

  • head <file> [n] — print the first n rows (default 10) with headers
  • describe <file> — count rows, list column names, detect types
  • filter <file> <col> <value> — print rows where column equals value
  • sum <file> <col> — sum a numeric column
  • to-json <file> — convert CSV to a JSON array of objects
  • dedup <file> <col> — remove duplicate rows by a column value

All operations are in-memory. No external libraries required. Input and output are to stdout unless --out <file> is specified.

ondrej-merkun/skill-audit/tree/main/test/fixtures/benign/csv-processor commit 22e7924b4d

Frequently asked questions

npx skillmds@latest add ondrej-merkun/csv-processor