0

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.

enter image description here

Jed
  • 331
  • 2
  • 11
  • 1
    Please, check [How to make good reproducible pandas examples](https://stackoverflow.com/q/20109391/4046632) and [Please do not upload images of code/data/errors.](//meta.stackoverflow.com/q/285551) – buran Feb 28 '23 at 12:11

0 Answers0