Skip to main contentSkip to solution

Which of the following functions may be used in handling the missing values in pandas?

(A) isnull()

(B) any()

(C) dropna()

(D) delna()

Solution

✅ Correct Option: 2

isnull() detects missing values (returns True where a value is NaN), any() is used with it to check whether any missing value exists in a row or column, and dropna() removes rows or columns that contain missing values. So (A), (B) and (C) are used for handling missing values.

delna() is not a pandas function.


Option 3 and others containing (D): pandas has no delna(). The real functions are dropna() to remove and fillna() to replace missing values, so do not confuse delna() with fillna().

Keyboard Shortcuts

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