Return a GroupBy object, grouped by values in column named “col”.
df.groupby(by=”col”)
Return a GroupBy object, grouped by values in index level named “ind”.
df.groupby(level=”ind”)
Return the number of rows if Series. Otherwise return the number of rows times number of columns if DataFrame.

Aggregate using one or more operations over the specified axis.
