Q:

How to find the different variables of a column

Data set is below
no,store_id,revenue,profit,state,country,label
0,101,779183,281257,WD,India,1
1,101,144829,838451,WD,India,0
2,101,766465,757565,AL,Japan,-1
3,102,766465,757565,AL,Japan,-1

the different labels are -1,0,1
the different countries are India, Japan
How to distinct count of each country also like 
India = 2, Japan = 2

A:

df = df.groupby(by=['country']).size()
print(df)

country
India    2
Japan    2

