Pandas -Spalte Rang

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

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