I am trying to merge two dataframes (call them DF1 & DF2) that basically look like the below. My goal is:
- I want open/close/low/high to all come from DF1.
- I want numEvents and Volume = DF1 + DF2.
- In cases where DF2 has rows that don't exist in DF1, I want open/close/low/high to be NaN (so I can later backfill them), and numEvents and Volume to come from DF2 as is.
Any help is much appreciated!