Suppose I have this csv file named sample.csv:
CODE AGE SEX CITY
---- --- --- ----
E101 25 M New York
E102 42 F New York
E103 31 M Chicago
E104 67 F Chicago
I wish to count the number of males and females in the data. For instance, for this one, the answer would be:
M : 2
F : 2
Where should I start and how should I code it?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…