I have a data set like the one below. I would like to make TABLE A into TABLE B. i.e. How can I make a new dataframe where Birthplace is my 1st coloumn, and frequency is the second (seen in second table below).
TABLE A
Person Birthplace
Nick Berlin
Alex Berlin
Mark Toronto
Jane New York
Bob Toronto
Ruth New York
Steven Berlin
TABLE B
Birthplace Frequency
Berlin 3
Toronto 2
New York 2