fill 0 where ever nan in df code example Example: dataframe fill nan with mode df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)