how to replace nan values with max occuring value in python code example
Example: mode imputation in python
df['country'].fillna(df['country'].mode()[0], inplace = True)
df['country'].fillna(df['country'].mode()[0], inplace = True)