pandas how to fill nan values in a column using a condition site:stackoverflow.com code example
Example: dataframe fill nan with mode
df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)
df['Column_Name'].fillna(df['Column_Name'].mode()[0], inplace=True)