I have two series which have the same index. Their basic format is
a =
Index Data_Value
date1 3
date2 56
. .
. .
. .
b =
Index Data_Value
date1 22
date2 34
. .
. .
. .
Based on previous question answered here, I am trying to join them using:
a.to_frame().join(b.to_frame())
but I get the error:
ValueError: columns overlap but no suffix specified: Index(['Data_Value'], dtype='object')
I thought it might be an issue with the field name,because 'b.name' returns 'Data_Value', so I tried:
a.to_frame().join(b.to_frame(),on='Data_Value' ) but still the same error.
Any guidance very welcome.