I have a pandas dataframe below:
df name value1 value2 otherstuff1 otherstuff2 0 Jack 1 1 1.19 2.39 1 Ja
The key in the answer above is actually the as_index=False, otherwise all the columns in the list get used in the index.
as_index=False
p_summ = p.groupby( attributes_list, as_index=False ).agg( {'AMT':sum })