I'm using panda data frame to handle data. Now I would need to aggregate data and wondering how.
I have df
:
Car Country
0 Toyota Japan
1 Nissan Japan
2 BMW Germany
3 Ford US
I would like to create df2
with print:
Japan 2
Germany 1
US 1