pandas.core.groupby.GroupBy.count

GroupBy.count()[source]

Compute count of group, excluding missing values.

Returns
Series or DataFrame

Count of values within each group.

See also

Series.groupby
DataFrame.groupby