xsv stats -s age,salary data.csv

Category: Data Science & Analysis

xsv stats -s age,salary data.csv

Compute statistics only for the age and salary columns

The -s flag (short for --select) limits stats to the named columns, here age and salary, skipping the rest. This keeps output readable when a file has many fields and speeds up analysis on wide files. Column names or 1-based indices both work in the selection list. Combine with --median to get a compact distribution summary.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.