pandas replace \N in colmn code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: replace "-" for nan in dataframe
df.replace(np.nan,0)
data["Gender"].fillna("No Gender", inplace = True)
df.replace(np.nan,0)