I have a dataframe of event logs that contain a column with the previous event\'s ID, but they are not in sequential order and I\'d like to make it so. If we take the follow