类似于?(假设您在相同的名称下具有相同的otherstuff1和otherstuff2)
df.groupby(['name','otherstuff1','otherstuff2'],as_index=False).sum()Out[121]: name otherstuff1 otherstuff2 value1 value20 Jack 1.19 2.39 2 31 Luke 1.08 1.08 1 12 Mark 3.45 3.45 0 1

类似于?(假设您在相同的名称下具有相同的otherstuff1和otherstuff2)
df.groupby(['name','otherstuff1','otherstuff2'],as_index=False).sum()Out[121]: name otherstuff1 otherstuff2 value1 value20 Jack 1.19 2.39 2 31 Luke 1.08 1.08 1 12 Mark 3.45 3.45 0 1