I have a dataframe (DF) that has the following columns: UserID, Country, Arrival_Year, Airport_Code. Each country is listed several times based on UserID.
I want to know the most common arrival year for each country listed in the data frame. How can I calculate that?
Tried using value counts but not getting the right answer.