Ranking and Comparing Groups in pandas: percent_rank, cumsum, and Window Functions for Running Totals and Leaderboards | Wicked Smart Data