pandas replace all nan values with 0 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)
data["Gender"].fillna("No Gender", inplace = True)
df.fillna(0)