Reputation: 5
I have a dataframe like this
Id timestamp
W-001 2022-10-15T17:54:47
W-001 2022-10-15T17:55:20
W-001 2022-10-15T17:55:21
W-002 2022-11-11T15:12:43
W-002 2022-11-11T15:12:50
W-002 2022-11-11T15:12:55
W-002 2022-11-11T15:12:57
W-003 2022-11-18T09:35:12
W-003 2022-11-18T09:35:13
W-003 2022-11-18T09:35:17
W-003 2022-11-18T09:35:23
I want result to be like this, select ID with the latest timestamp
Id timestamp
W-001 2022-10-15T17:55:21
W-002 2022-11-11T15:12:57
W-003 2022-11-18T09:35:23
Upvotes: 0
Views: 67