I am new to python programming.
I want to loop through each user and get unique countries and its counts.
Here's the input data i have:
df = pd.DataFrame({'User':['101','101','102','102','102'],'Country':['India,Brazil','India','India,Brazil,Japan','India,Brazil','India']})
wanted output here
Thanks