Hi Guys I would like to assign an ID to the following dataframe. The Bus has to be the same if the arrival station matches departure station and if arrival time matches with the departure time. Does anyone has an idea how to solve this issue? Thanks in advance!
I would like to have the following: