xsv stats data.csv

Category: Data Science & Analysis

xsv stats data.csv

Show summary statistics for every column

The stats command computes summary statistics for all columns: count, mean, standard deviation, min, max, and more, one row per field. It is the fastest way to get a numeric overview of a CSV without loading it into a spreadsheet. Mean and standard deviation are always included by default. Add --median or --mode for distribution measures, and -s to limit which columns are analyzed.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.