pandans convert to nan to ' ' code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: pandas dataframe convert nan to string
df.fillna('', inplace=True)
data["Gender"].fillna("No Gender", inplace = True)
df.fillna('', inplace=True)