Aggregate¶
The "aggregate"
transform is currently minimal – it adds a new count
field
that contains the number of data items in a group. More aggregate operations
will be added later.
Parameters¶
groupby
- Which fields to use for grouping. Missing
groupby
results in a single group that includes all the data items.
Example¶
Given the following data:
x | y |
---|---|
first | 123 |
first | 456 |
second | 789 |
... and configuration:
{
"type": "aggregate",
"groupby": ["x"]
}
A new list of data objects is created:
x | count |
---|---|
first | 2 |
second | 1 |