create column pandas with nan code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: represent NaN with pandas in python
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")
data["Gender"].fillna("No Gender", inplace = True)
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")