1. Home
  2. Data Science
  3. Pandas
  4. What does df.drop(columns=['a'], inplace=True) return?

Added 30 Nov -0001

What does df.drop(columns=['a'], inplace=True) return?

  1. Null
  2. True
  3. False
  4. None Correct answer

Correct answer

D. None

13 views

MCQSEXAM

Explanation

With inplace=True the frame is changed directly and the call returns None.

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