Answers for "df = df.apply(lambda x :x.fillna(x.mode()[0]))"

1

mode imputation in python

df['country'].fillna(df['country'].mode()[0], inplace = True)
Posted by: Guest on September-01-2020

Python Answers by Framework

Browse Popular Code Answers by Language