I have a dataframe that has data like
1. id date remarks 2. 1 12-01-2015 12:00:15 Good 3. 2 12-01-2015 1:00:14 OK 4. 1 13-01-2015 12:00:15 Not Ok 5. 2 14-01-2015 1:00:15 Bad 6. 3 15-01-2015 1:00:15 Good
I need the output in such a way that for each id the highest date and remarks is returned, so for id 2 it would return 14-01-2015 1:00:15 and remark as bad