I am using Rank() to assign a rank value to a dataframe, however I need the rank to be 1 = Highest and not 1 = Lowest.
Rank()
If you want to get the rank of x from the largest to the smallest, do
x
rank(-x)
2.1m questions
2.1m answers
60 comments
57.0k users