I have this df:
df1
t0
ACER 50
BBV 20
ACC 75
IRAL 25
DECO 58
and on the other side :
df2
t1
ACER 50
BBV 20
CEL 0
DIA 25
I am looking forward to add both dfs to obtain the following output:
df3
t2
ACER 100
BBV 40
ACC 75
IRAL 25
DECO 58
DIA 25
CEL 0
Basically is the addition of the common index values in df1
and df2
and include those that didnt appeared in df1
I tried a
d1.add(df2)
but Nan values arised, I also thought in merging dfs, substitute Nans by zeros and add columns , but I think maybe is lot of code to perform this.