pandas python group by for one column and sum another column code example
Example: pandas python group by for one column and sum another column
df.groupby(['A','C'], as_index=False)['B'].sum()
df.groupby(['A','C'], as_index=False)['B'].sum()