pandas.core.groupby.DataFrameGroupBy.size

DataFrameGroupBy.size(self)[source]

Compute group sizes.

Returns:
Series

Number of rows in each group.

See also

Series.groupby
DataFrame.groupby
Scroll To Top