show null values python code example Example: represent NaN with pandas in python import pandas as pd if pd.isnull(float("Nan")): print("Null Value.")