Пандас -колонна ранга

# Basic syntax:
df['column'].rank()

# Note, I like to use method='dense' and ascending=False
Charles-Alexandre Roy