What do you mean "seems wrong"? The following line works fine:
.groupby(['Item', 'Size', 'Price'], as_index=False)['Quantity'].sum()