dense rank in pandas

Solutions on MaxInterview for dense rank in pandas by the best coders in the world

showing results for - "dense rank in pandas"
Olivier
24 Jan 2020
1df['Rank'] = df.Year.rank(method='dense').astype(int)
2
3df