I am having a list 'final_value' which contains panda series with data below. I need to add the vales of multiple panda series into one series. Can anyone please help me.
Need to add values according to their index value.
I tried final_value[i].add(final_value[i+1])
in a loop. But did not work
Data:
[0 0.000000
1 14.522873
2 21.677418
3 10.791055
4 0.000000
5 7.176507
Name: (FDIUSGD Index, PX_LAST), Length: 6, dtype: float64,
0 -16.276548
1 -16.276548
2 -15.761264
3 -16.276548
4 -16.276548
5 -17.822402
Name: (USHBMIDX Index, PX_LAST), Length: 6, dtype: float64,
0 0.000000
1 5.972322
2 15.255200
3 -3.498313
4 2.698414
5 3.083199
Name: (USPHNSA Index, PX_LAST), Length: 6, dtype: float64,
Expected output:
0 -16.276548
1 4.218647
2 21.171354
3 -8.983806
4 -13.578134
5 -7.562696
Thanks!