I have a df that contains ids and timestamps.
I was looking to group by the id and then a condition on the timestamp in the two rows. Something like if timestamp_col1 > timestamp_col1 for the second row then 1 else 2
**ID_Column Timestamp_col1 **
Aucun commentaire:
Enregistrer un commentaire