DataFrame.quartile() is used to get quartiles. By default DataFrame.quartile() will display ____ quantile.
DataFrame.quartile() is used to get quartiles. By default DataFrame.quartile() will display ____ quantile.
Solution
✅ Correct Option: 2
By default, DataFrame.quantile() uses the parameter , which is the 50th percentile. This is the second quartile, also called the median.
To get other quartiles, pass them explicitly, for example df.quantile([0.25, 0.5, 0.75]).
Option 4: describe() shows the 25%, 50% and 75% values together, but quantile() on its own returns only one value, 0.5.
Related questions:
2025: 21 May Shift 1
2026: 29 May Shift 1
2025: 20 May Shift 1
2025: 15 May Shift 2
2025: 15 May Shift 2