GroupBy#
GroupBy objects are returned by groupby calls: cudf.DataFrame.groupby()
, cudf.Series.groupby()
, etc.
Indexing, iteration#
Returns a dictionary mapping group keys to row labels. |
|
Function application#
|
Apply a python transformation function over the grouped chunk. |
|
Apply aggregation(s) to the groups. |
|
Apply aggregation(s) to the groups. |
|
Apply aggregation(s) to the groups. |
|
Apply a function func with arguments to this GroupBy object and return the function's result. |
|
Apply an aggregation, then broadcast the result to the group size. |
Computations / descriptive stats#
|
Backward fill NA values. |
|
Compute the number of values in each column. |
|
Return the cumulative count of keys in each group. |
|
Cumulative max for each group. |
|
Cumulative min for each group. |
|
Cumulative sum for each group. |
|
Get the difference between the values in each group. |
|
Forward fill NA values. |
|
Compute first of group values. |
|
Construct DataFrame from group with provided name. |
Returns a dictionary mapping group keys to row labels. |
|
|
Compute idxmax of group values. |
|
Compute idxmin of group values. |
|
Compute last of group values. |
|
Compute max of group values. |
|
Compute mean of group values. |
|
Compute median of group values. |
|
Compute min of group values. |
|
Number each group from 0 to the number of groups - 1. |
|
Return the nth row from each group. |
|
Compute nunique of group values. |
|
Compute prod of group values. |
|
Shift each group by |
Return the size of each group. |
|
|
Compute the column-wise std of the values in each group. |
|
Compute sum of group values. |
|
Compute the column-wise variance of the values in each group. |
|
Compute the pairwise covariance among the columns of a DataFrame, excluding NA/null values. |
The following methods are available in both SeriesGroupBy
and
DataFrameGroupBy
objects, but may differ slightly, usually in that
the DataFrameGroupBy
version usually permits the specification of an
axis argument, and often an argument indicating whether to restrict
application to columns of a specific data type.
|
Backward fill NA values. |
|
Compute pairwise correlation of columns, excluding NA/null values. |
|
Compute the number of values in each column. |
|
Return the cumulative count of keys in each group. |
|
Cumulative max for each group. |
|
Cumulative min for each group. |
|
Cumulative sum for each group. |
|
Generate descriptive statistics that summarizes the central tendency, dispersion and shape of a dataset's distribution, excluding NaN values. |
|
Get the difference between the values in each group. |
|
Forward fill NA values. |
|
Fill NA values using the specified method. |
|
Compute idxmax of group values. |
|
Compute idxmin of group values. |
|
Compute nunique of group values. |
|
Compute the column-wise quantiles of the values in each group. |
|
Shift each group by |
Return the size of each group. |
The following methods are available only for SeriesGroupBy
objects.
|
|
|
Compute nunique of group values. |
Get a list of the unique values for each column in each group. |