csvstat --json data.csv

Category: Data Science & Analysis

csvstat --json data.csv

Dump column statistics as JSON

The --json flag switches csvstat output from a human report to a JSON object that scripts can parse. Each column becomes a key holding its statistics as nested values. This is the machine-readable form for feeding summaries into other tools. The same flag shape is used by csvjson for converting whole files.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.