In Pandas data frame, I have two columns to store timestamps say timelab1, and, timelab2. I want to add timestamp '19:00' to either timelab1 or timelab2. If timelab1 is empty, update the 19:00 to timelab1 otherwise update it into timelab2.
I tried the following using np.where,
`updated_old_price_df['timelab1'] = np.where(updated_old_price_df['timelab1'].values == '', update_time, '')`
Here I am trying to update 'timelab1' column with timestamp if `timelab1` is not exist. But I don't know how to update `timelab2`, if value of `timelab1` is exist.