pandas.core.groupby.DataFrameGroupBy.count

DataFrameGroupBy.count(self)[source]

Compute count of group, excluding missing values.

Returns
DataFrame

Count of values within each group.