``` python df = DataFrame({'A' : ['foo', 'bar', 'foo', 'bar', 'foo', 'bar', 'foo', 'foo'], 'B' : ['one', 'one', 'two', 'three', 'two', 'two', 'one', 'three'], 'C' : randn(8), 'D' : randn(8)}) df grouped = df.groupby('A') grouped = df.groupby('A') grouped.agg(np.sum) grouped = df.groupby('A', as_index=False) grouped.agg(np.sum) grouped.sum() ``` Adding @laserson so notifications go through