Skip to main contentSkip to solution

Pandas provides ___________ function to check for the missing values in a DataFrame.

Solution

✅ Correct Option: 1

The isnull() function returns a DataFrame of the same shape with True where a value is missing (NaN or None) and False elsewhere. Its alias isna() does the same job. Chaining df.isnull().sum() gives the count of missing values in each column.


Option 2: fillna() replaces missing values with a given value; it does not check for them.

Options 3 and 4: isnul() and is_null() are misspellings and do not exist in Pandas.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question