xsv frequency -s dept data.csv

Category: Data Science & Analysis

xsv frequency -s dept data.csv

Count how often each dept value occurs

The frequency command tallies the values in the -s selected columns and prints a table of value, count, and percentage. It ranks by frequency descending, so the most common department appears first. Multiple columns can be listed to count value combinations. This is the fastest category census available for CSV data.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.