rang dense en pandas
df['Rank'] = df.Year.rank(method='dense').astype(int)
df
Fantastic Frog
df['Rank'] = df.Year.rank(method='dense').astype(int)
df