GroupBy¶
GroupBy objects are returned by groupby calls: DataFrame.groupby(), Series.groupby(), etc.
Indexing, iteration¶
| 
 | Construct DataFrame from group with provided name. | 
Function application¶
| 
 | Apply function func group-wise and combine the results together. | 
| 
 | Apply function column-by-column to the GroupBy object. | 
The following methods are available only for DataFrameGroupBy objects.
| 
 | Aggregate using one or more operations over the specified axis. | 
| 
 | Aggregate using one or more operations over the specified axis. | 
Computations / Descriptive Stats¶
| 
 | Returns True if all values in the group are truthful, else False. | 
| Returns True if any value in the group is truthful, else False. | |
| Compute count of group, excluding missing values. | |
| 
 | Number each item in each group from 0 to the length of that group - 1. | 
| Cumulative max for each group. | |
| Cumulative min for each group. | |
| Cumulative product for each group. | |
| Cumulative sum for each group. | |
| 
 | Return an ewm grouper, providing ewm functionality per group. | 
| 
 | Return a copy of a DataFrame excluding elements from groups that do not satisfy the boolean criterion specified by func. | 
| 
 | Compute first of group values. | 
| 
 | Compute last of group values. | 
| Compute mean absolute deviation of groups, excluding missing values. | |
| 
 | Compute max of group values. | 
| 
 | Compute mean of groups, excluding missing values. | 
| 
 | Compute median of groups, excluding missing values. | 
| 
 | Compute min of group values. | 
| 
 | Take the nth row from each group. | 
| 
 | Compute prod of groups. | 
| 
 | Provide the rank of values within each group. | 
| 
 | Compute standard error of the mean of groups, excluding missing values. | 
| 
 | Compute standard deviation of groups, excluding missing values. | 
| 
 | Compute sum of group values | 
| 
 | Compute variance of groups, excluding missing values. | 
| 
 | Return DataFrame with number of distinct observations per group for each column. | 
| 
 | Return group values at the given quantile. | 
| Compute group sizes. | |
| 
 | First discrete difference of element. | 
| 
 | Return index of first occurrence of maximum over requested axis in group. | 
| 
 | Return index of first occurrence of minimum over requested axis in group. | 
| 
 | Fill NA/NaN values in group. | 
| 
 | Synonym for DataFrame.fillna() with  | 
| 
 | Synonym for DataFrame.fillna() with  | 
| 
 | Return first n rows of each group. | 
| 
 | Alias for bfill. | 
| 
 | Shift each group by periods observations. | 
| 
 | Return last n rows of each group. | 
The following methods are available only for DataFrameGroupBy objects.
| Generate descriptive statistics that summarize the central tendency, dispersion and shape of a dataset’s distribution, excluding  | 
The following methods are available only for SeriesGroupBy objects.
| Return the smallest n elements. | |
| Return the first n rows ordered by columns in descending order in group. | |
| 
 | Compute group sizes. | 
| Return unique values in group. |