Search code examples
pythonpandasmatlab

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?


Solution

  • In with you can use below code:

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