# checking sum of null missing values in each column # each column has missing values appart from only 2 column and that is year and uniqueid df.isnull().sum() git code example
Example 1: to detect if a data frame has nan values
> df.isnull().any().any()
True
Example 2: to detect if a data frame has nan values
df.isnull().sum().sum()
5