I have a dateframe, df , in Python which looks like the image below. I would like to create a column called "Date 3" which picks the date in column "Date 1", however if "Date 1" is empty it picks the date within "Date 2".
I looked into using np.where()
, to solve the problem, but wasn't 100% sure how to apply this code to my dataframe, df.