Ranking, splitting into quantiles with Python
Suppose you're given a large table containing student grades, with the following structure:
You can assume the records below are a preview, and go on for some length.
Using Python, add a column with the student ranking in ascending order by 'grade'.
Next, calculate the following summary statistics for the student grades:
- median grade
- 25th percentile grade
- 75th percentile grade
Click here to view this problem in an interactive Colab (Jupyter) notebook.
Subscribe to premium account to see the solution.Get premium now