I have a data frame

if time stamp of an instance is same with the time stamp of a second instance, I need to create a new column and set the same transaction number for both instances
I have tried using np.where and isin but I was only able to set two values