Show all stats for columns 2 and 4

csvstat

  • Print descriptive statistics for all columns in a CSV file.
    Included in csvkit.
    More information: <https://csvkit.readthedocs.io/en/latest/scripts/csvstat.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

csvstat -c {{2,4}} {{data.csv}}

click the source code to copy install csvstat on any operating system with command-not-found.com