dataframe equal to nan code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: represent NaN with pandas in python
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")
df[df.isnull().any(axis=1)]
import pandas as pd
if pd.isnull(float("Nan")):
print("Null Value.")