I am having difficulties trying to append columns of different rows together.
For example,
Also, to note that A and B are in the form of dictionary, where you will see both dates and values.
However, my desired output is:
I have tried coding it out, but to no avail. Please assist.for ric in ric_list:
df = pd.DataFrame(ric_dict[ric])
df['Date'] = pd.to_datetime(df['DATE'])
df.set_index('Date', inplace=True)
df = df.drop(columns=['DATE'])
df.columns = [ric]
print(ric)
print(df.tail())
rawData = pd.concat([rawData,df], ignore_index=False)