https://dataindependent.com/pandas/pa...
Pandas Rank will compute the rank of your data point within a larger dataset. It is extremely useful for filtering the 'first' or 2nd of of a sub dataset. We will look at two methods today:
1. Rank data within your entire DataFrame
2. Rank data within subgroups (group by)
https://github.com/Data-Indepedent/pa...