fill np.nan pandas code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: how to replace nan values with 0 in pandas
df.fillna(0)
Example 3: how to fill nan values with mean in pandas
df.fillna(df.mean())