I am having issues concatenating 3 dataframes with the same index (in this case the index are dates). I am trying to plot three differnet dataframes onto one plotly graph and figured combining the dataframes would be the easiest. Currently I am using code such as below.
pd.concat([df1,df2,df3], axis = 1)
But I am raising the below error.
ValueError: cannot reindex from a 
duplicate axis
My dataframes are structured like below.
           A
7/28/2018  4 
7/29/2018  5
           B
7/28/2018  3
7/29/2018  4
           C
7/28/2018  1
7/29/2018  2
And I want the below result:
           A B C
7/28/2018  4 3 1
7/29/2018  5 4 2
Can someone explain what I am doing incorrectly here?
 
    