pandas.core.groupby.GroupBy.count

GroupBy.count(self)[source]

Compute count of group, excluding missing values.

Returns
Series or DataFrame

Count of values within each group.

See also

Series.groupby
DataFrame.groupby