i have two dataframes:
df1:
index   count1
A       1
B       1
C       1
df2:
index   count2
B       2
C       2
D       2
And what i want is:
index   count1   count2   diff
A       1        0        1
B       1        2        -1
C       1        2        -1
D       0        2        -2
Tried several examples on pandas' doc and other posts, but none of them works for me. Thanks
 
     
     
    