pandas check if value is not nan code example
Example 1: to detect if a data frame has nan values
> df.isnull().any().any()
True
Example 2: python data frame check if any nan value present
df['your column name'].isnull().values.any()
> df.isnull().any().any()
True
df['your column name'].isnull().values.any()