replacing NaNs with a value pandas code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: how to replace zero value in python dataframe
nonzero_mean = df[ df.col != 0 ].mean()
data["Gender"].fillna("No Gender", inplace = True)
nonzero_mean = df[ df.col != 0 ].mean()