Check out example codes for "to detect if a data frame has nan values". It will help you in understanding the concepts better.

Code Example 1

> df.isnull().any().any()
True

Code Example 2

df.isnull().sum().sum()
5

Learn ReactJs, React Native from akashmittal.com