What does 'df.groupby()' function do in pandas?
1
Sorts the entire dataframe based on group
2
Group DataFrame or Series using a mapper or by a Series of columns
3
Connects to a database and groups the data
4
Returns group-wise cumulative sum
Returns group-wise cumulative sum