how to check if column has nan pandas code example
Example 1: find nan values in a column pandas
df.isnull().values.any()
Example 2: to detect if a data frame has nan values
> df.isnull().any().any()
True
df.isnull().values.any()
> df.isnull().any().any()
True