1. Home
  2. Data Science
  3. Pandas
  4. Which columns does df.describe() summarise by default?

Added 30 Nov -0001

Which columns does df.describe() summarise by default?

  1. Only columns free of NaN
  2. Only the numeric columns Correct answer
  3. Every column including text
  4. Only the index entries

Correct answer

B. Only the numeric columns

12 views

MCQSEXAM

Explanation

describe defaults to numeric dtypes; pass include='all' to cover object columns as well.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? 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