get the total group by a column in pandas code example Example: pandas groupby sum df.groupby(['Fruit','Name'])['Number'].sum()