check if there are na values pandas code example
Example 1: python data frame check if any nan value present
df['your column name'].isnull().values.any()
Example 2: check if a value is nan pandas
import numpy as np
import pandas as pd
val = np.nan
print(pd.isnull(val))
# True