On this page
pandas.core.groupby.DataFrameGroupBy.count
- DataFrameGroupBy.count()[source]
-
Compute count of group, excluding missing values.
- Returns
-
- Series or DataFrame
-
Count of values within each group.
See also
-
Series.groupby
-
Apply a function groupby to a Series.
-
DataFrame.groupby
-
Apply a function groupby to each row or column of a DataFrame.
© 2008–2022, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.5.0/reference/api/pandas.core.groupby.DataFrameGroupBy.count.html