pd.nan pandas code example
Example 1: missing values in a dataset python
df.isnull().sum()
Example 2: represent NaN with pandas in python
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")
df.isnull().sum()
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")