Tags / rank
Ranking Categories by Values in Another Column: A Comparison of Simple Rounding and Clustering Approaches
Categorizing Result Sets with RowNumber: A Deep Dive into SQL Server Techniques and Alternatives
Ranking Nearest Match Datetime Dates in a Pandas DataFrame Using Groupby and Rank Functions