Skip to main contentSkip to solution

Dataframe.quantile() is used to get the quartiles. The second quantile is known as _____________.

Solution

✅ Correct Option: 4

The second quartile (Q2) splits the sorted data into two equal halves, so 50% of the values lie below it. That is the definition of the median. In pandas, df.quantile(0.5) returns the median.


Option 1: the mode is the most frequent value, and it is not found using quantiles.

Option 2: the mean is the arithmetic average, and it can differ from the median when the data is skewed.

Q1 is the 25th percentile (quantile(0.25)), Q2 is the 50th percentile (quantile(0.5)), and Q3 is the 75th percentile (quantile(0.75)).

Keyboard Shortcuts

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