pandas group by coloumn and sum values belonging to another coloumn code example Example: pandas groupby sum df.groupby(['Fruit','Name'])['Number'].sum()