Let me explain, I have a dataframe like this.
I have a dataframe that contains name & country. A specific name might have more than one country. So I want to keep the name & country that occurs the most.
Input DF:
name country
John UK
John USA
John USA
Maria India
Maria India
Maria UAE
Tim Australia
Expected output:
name country
John USA
John USA
Maria India
Maria India
Tim Australia