how to find the mode using pandas groupby code example
Example: how to find the mode using pandas groupby
source.groupby(['Country','City']).agg(lambda x:x.value_counts().index[0])
source.groupby(['Country','City']).agg(lambda x:x.value_counts().index[0])