How to get only maximum from each ID?

I am attempting to only have the driver status for the max timestamp for each device_id. I need to get rid of the two other ones from older data points, but I cannot figure out how to do this. Any tips?


This topic has been closed for comments