I have a pandas dataframe below:
df name value1 value2 otherstuff1 otherstuff2 0 Jack 1 1 1.19 2.39 1 Ja
Something like ?(Assuming you have same otherstuff1 and otherstuff2 under the same name )
df.groupby(['name','otherstuff1','otherstuff2'],as_index=False).sum() Out[121]: name otherstuff1 otherstuff2 value1 value2 0 Jack 1.19 2.39 2 3 1 Luke 1.08 1.08 1 1 2 Mark 3.45 3.45 0 1