replace nan values in a column pandas code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: python pandas convert nan to 0
pandas.DataFrame.fillna(0)
data["Gender"].fillna("No Gender", inplace = True)
pandas.DataFrame.fillna(0)