I have a CSV file, a.csv, which have 15000 rows and 16 columns. It have numbers, sentences, dates in different columns.
It looks like this:
A, B, C, D a b c d e f g h e i j k a m n k
How can I count the unique values in each column separately and print them at once?
I want an output that looks like this:
A 2 B 4 C 4 D 3
Any advice or help are highly appreciated. Thanks in advance.