I have a dataframe:
df1
S.No T.No Amt Date
1 34 10 20-6-2021
2 34 30 21-6-2021
3 34 20 22-6-2021
4 21 50 23-6-2021
Objective: In cases of same T.No the date for all of those should be the one associated with the highest amt.
Output:
S.No T.No Amt Date
1 34 10 21-6-2021
2 34 30 21-6-2021
3 34 20 21-6-2021
4 21 50 23-6-2021
Any help is appreciated.