df = df.apply(lambda x :x.fillna(x.mode()[0])) code example Example: mode imputation in python df['country'].fillna(df['country'].mode()[0], inplace = True)