Using dt.fillna(dt.mean) but its nit replacing null values instead all values as None code example
Example: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
data["Gender"].fillna("No Gender", inplace = True)