The predicate returns the rank of Element in the list OrderedList.
Group of records with the same value are assigned the average of the ranks.
OrderedList is a list of pairs (S - E) where S is the score and E is the element.
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.rank.html