pandas.core.groupby.GroupBy.sizeΒΆ

GroupBy.size(self)[source]ΒΆ

Compute group sizes.

Returns:
Series

Number of rows in each group.

See also

Series.groupby
DataFrame.groupby
Scroll To Top