fill nan with null pandas code example
Example 1: pandas to convert null values to mean in numeric column
df.fillna(df.mean(), inplace=True)
Example 2: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
df.fillna(df.mean(), inplace=True)
data["Gender"].fillna("No Gender", inplace = True)