I'm new in Python and I need to combine 2 dataframe with 'id' as the primary key. I need to sum up all the Charges from df1 and df2.
df1:
[df1][1]
id     Name     Charge
1       A         100
1       A         100
2       B         200
2       B         200
5       C         300
6       D         400
df2:
[df2][2]
id     Name      Charge
1       A          100
1       A          100
2       B          200
8       X          200
output:
[output][3]
id       Name      Charge(TOTAL from df1 & df2)
1         A           400
2         B           600
5         C           300
6         D           400
8         X           200
 
     
    