Skip to content
Advertisement

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

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 !!

Advertisement

Answer

In Python with Pandas you can use below code:

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

>df.isnull().sum().sum()
89
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement