check nan in series 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().sum().sum()
5
df.isnull().values.any()
df.isnull().sum().sum()
5