checking for nan values in the column of the dataframe stack overflow code example
Example 1: dataframe find nan rows
df[df.isnull().any(axis=1)]
Example 2: to detect if a data frame has nan values
df.isnull().sum().sum()
5
Example 3: python data frame check if any nan value present
df['your column name'].isnull().values.any()