give the following dataframe I would like to select the rows for each user that has the highest amount:
Name Amount ID
--------------------
Alice 100 1
Bob 50 2
Charlie 10 3
Alice 30 4
Charlie 50 5
the result should be:
Name Amount ID
--------------------
Alice 100 1
Bob 50 2
Charlie 50 5
how can i do this efficiently?