Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to count categories in a csv command line

cut -f1 -d, test.csv | uniq -c | tail -n +2 | while read line; do words=($line); echo ${words[1]} : ${words[0]}; done
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #count #categories #csv #command #line
ADD COMMENT
Topic
Name
2+7 =