Ranking helps us determine whether one of two items is ranked higher or ranked lower than another. Ranking reduces measures into a sequence of ordinal numbers that can be used to evaluate complex criteria bask on the resulting order.
To demonstrate ranking, we will use the following series of data:
These values can then be ranked using .rank(), which by default tells us the ordering of the labels from lowest value to highest value:
The result represents the order of the values numerically from smallest to largest ...