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