Skip to main contentSkip to solution

Which of the following are descriptive statistics methods?

(A) df.max()

(B) df.sum()

(C) df.median()

(D) df.quantile()

Solution

✅ Correct Option: 3

All four methods summarise the data in a DataFrame into a single value per column, which is what descriptive statistics does. max()\texttt{max()} gives the largest value, sum()\texttt{sum()} the total, median()\texttt{median()} the middle value, and quantile()\texttt{quantile()} the value at a given percentile (0.5 by default).


Descriptive statistics is not limited to mean, median and mode. Range-type values (max, min), totals and percentiles are also descriptive, and df.describe()\texttt{df.describe()} reports many of them together.

Keyboard Shortcuts

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