sum of values column groupby code example Example: pandas groupby sum df.groupby(['Fruit','Name'])['Number'].sum()