Home > Mobile >  How to detect if a data frame has nan values in MATLAB?
How to detect if a data frame has nan values in MATLAB?

Time:07-24

I am new to Matlab and Python. Currently i am working on some assignment where i want to check if data frame has nan values in matlab or not ? Hoping to hear back soon with response. Thank You !!

CodePudding user response:

This is very easy you can use below code :

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

>df.isnull().sum().sum()
89

Hope this solution will help you !! Happy Coding !!

  • Related