I would like to merge/concat "outer"
for 2 different dataframes with different set of holiday dates. Date column is string. Both dataframe prices exclude non-pricing days e.g. public holiday and weekends
Assuming Dataframe 1 follows US holiday:
df1_US_holiday
Date Price_A
5/6/2020 2
5/5/2020 3
5/4/2020 4
5/1/2020 5
4/30/2020 6
4/29/2020 1
4/28/2020 3
4/27/2020 1
Assuming Dataframe 2 follows China holiday (note: 1-5 May is China holiday):
df2_China_holiday
Date Price_B
5/6/2020 4
4/30/2020 3
4/29/2020 2
4/28/2020 2
4/27/2020 5
Expected merge/concat results:
Date Price_A Price_B
5/6/2020 2 4
5/5/2020 3 NaN
5/4/2020 4 NaN
5/1/2020 5 NaN
4/30/2020 6 3
4/29/2020 1 2
4/28/2020 3 2
4/27/2020 1 5
Ultimately, Would like fill the NaN
for fillna(method='bfill')
. Should I include any holiday library pack for this merge/concat action?