partition
partition returns an aggregator that creates a partition (subtable) for an aggregation group.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| col | str | The column to create partitions from. |
| include_by_cols optional | boolean | Whether to include the group by columns in the result; the default is |
Returns
An aggregator that computes a partition aggregation.
Examples
In this example, agg.partition returns partitions of the X column, as grouped by Letter. The result table contains two rows: one for each letter. The subtables can be extracted using either NumPy or pandas.