1. Home
  2. Data Science
  3. Pandas
  4. Which pandas method removes the rows of a DataFrame that…

Added 30 Nov -0001

Which pandas method removes the rows of a DataFrame that contain missing values?

  1. isna()
  2. notna()
  3. fillna()
  4. dropna() Correct answer

Correct answer

D. dropna()

13 views

MCQSEXAM

Explanation

dropna() returns a copy of the DataFrame with rows or columns holding missing values removed. isna() and notna() only detect nulls, while fillna() replaces them.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Pandas MCQs

Practise all Pandas MCQs

Similar MCQs