Pandas > Group by column using sum

Name
Code
Output
dataframe = pandas.DataFrame(numpy.random.randint(0,5,size=(5, 3)), columns=['C1','C2','C3'])
print ("dataframe")
print (dataframe)
aggregate = dataframe.groupby('C1').sum()
print ("aggregated data")
print (aggregate)
dataframe
   C1  C2  C3
0   2   4   2
1   2   1   1
2   4   1   4
3   3   1   1
4   3   2   0
aggregated data
    C2  C3
C1        
2    5   3
3    3   1
4    1   4