grouby() in pandas can be used with multiple aggregate functions. Some of which are sum(),mean(), count(),std().
Data is divided into groups based on categories and then the data in these individual groups can be aggregated by the aforementioned functions.