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

Question:

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?

Asked By: Ramen

||

Answers:

In with you can use below code:

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

>df.isnull().sum().sum()
89
Answered By: Jagroop
Categories: questions Tags: , ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.