avoid nan values from plotting dataframe code example
Example 1: pandas replace nan
data["Gender"].fillna("No Gender", inplace = True)
Example 2: find nan value in dataframe python
# to mark NaN column as True
df['your column name'].isnull()
data["Gender"].fillna("No Gender", inplace = True)
# to mark NaN column as True
df['your column name'].isnull()