GroupBy#
GroupBy objects are returned by groupby
calls: maxframe.dataframe.DataFrame.groupby(), maxframe.dataframe.Series.groupby(), etc.
Indexing, iteration#
Function application#
|
Apply function func group-wise and combine the results together. |
|
Aggregate using one or more operations on grouped data. |
|
Aggregate using one or more operations on grouped data. |
|
Call function producing a like-indexed DataFrame on each group and return a DataFrame having the same indexes as the original object filled with the transformed values |
Computations / descriptive stats#
|
|
|
|
|
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 prod for each group. |
|
Cumulative sum for each group. |
|
|
|
|
Return an expanding grouper, providing expanding functionality per group. |
|
|
|
|
|
|
|
|
|
Return a rolling grouper, providing rolling functionality per group. |
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
Cumulative max for each group. |
|
Cumulative min for each group. |
|
Cumulative prod for each group. |
|
Cumulative sum for each group. |
|
|
Fill NA/NaN values using the specified method |
|
|
|
|
|
|
|
Provide the rank of values within each group. |
|
Return a random sample of items from each group. |
The following methods are available only for SeriesGroupBy objects.
The following methods are available only for DataFrameGroupBy objects.
|
Apply function func group-wise and combine the results together. |