1. Home
  2. Data Science
  3. Pandas
  4. Which statistics does df.describe() report by default for…

Added 30 Nov -0001

Which statistics does df.describe() report by default for numeric columns?

  1. Count, mean, standard deviation, min, quartiles and max Correct answer
  2. Count, mode and frequency for each distinct value present
  3. Correlation coefficients between all column pairs
  4. The first five rows sorted by each column

Correct answer

A. Count, mean, standard deviation, min, quartiles and max

13 views

MCQSEXAM

Explanation

describe returns count, mean, standard deviation, minimum, the 25th, 50th and 75th percentiles, and maximum for numeric columns. Percentiles describe the spread and help spot outliers that a mean alone would hide. For object columns it switches to count, unique, top and freq, and include="all" forces both views at once.

Reference

Asked in: NTS, PPSC IT, Interviews

Preparing for an exam?

Doubts & discussion

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