I can't seem to figure out how to build a dataframe from a series of new dataframes which all have the same index ( date ). I have the creation of the destination dataframe working properly BUT it's the changing of the index from 0...n to the dates that has me stumped.
I am building a dataframe df_new_sym
and adding it as a column to another dataframe
df_all_sym
this will continue for as many new columns are needed.
**df_new_sym** date iv_close_abs 0 2020-03-11 7.695 1 2020-03-12 22.172 2 2020-03-13 -8.108 3 2020-03-16 26.308 will CURRENTLY result in
**df_all_sym** type_a type_b 0 7.695 10.00 1 22.172 11.23 2 -8.108 14.78 3 26.308 9.98 I want the index of df_all_sym to be the date range coming from df_new_sym.
date type_a type_b 2020-03-11 7.695 10.00 2020-03-12 22.172 11.23 2020-03-13 -8.108 14.78 2020-03-16 26.308 9.98