csvstat
Print descriptive statistics for all columns in a CSV file. tldr-pages
On several platforms
Several platforms
Print descriptive statistics for all columns in a CSV file. Included in csvkit.
Show all stats for all columns
csvstat data.csvIdentifyShow all stats for columns 2 and 4
csvstat --columns 2,4 data.csvIdentifyShow sums for all columns
csvstat --sum data.csvIdentifyShow the max value length for column 3
csvstat --columns 3 --len data.csvIdentifyShow the number of unique values in the "name" column
csvstat --columns name --unique data.csvIdentify