how to set something in dataframe to 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.")