xsv stats --median --mode data.csv

Category: Data Science & Analysis

xsv stats --median --mode data.csv

Add median and mode to the column statistics

The --median and --mode flags extend xsv stats output with the median (middle value) and mode (most frequent value) of each column. These flags combine freely and can be used together in one command. There is no --mean flag because the mean is already part of the default output. Use --cardinality to also count distinct values per column.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.