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
df2: df2
output: output
I got stuck after this: dfJoined = df1.merge(df2, on='id') dfJoined = df.groupby(["id", "Name"])['Charges'].sum()
#renamed "Charges" column in df2