basingse:

As you can see from the output that train_id is different for two cases which must not happen. My original code is of same format.


Maybe, I am a bit late to the party. Why do you think train_ids should not be different?