-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Is your feature request related to a problem?
Besides the explicit methods of Column, we do not support aggregation yet.
Desired solution
- New subclass of
Cell:AggregatedCellorAggregationCell. - Think of it as a
Cellwith memory. - New
Tablemethodaggregate- Callback
(Row) -> AggregatedCell - Returns a new
Tablewith a single row
- Callback
- For symmetry, also add an
aggregatemethod toColumn - Other mapping
Tablemethods (e.g.transform_column) should also be able to handleAggregatedCell, but produce the same row count as a normalCell, e.g. by filling the entire column with the same computed value. - Operations that mix
AggregateCellandCellshould produce aCell, so they cannot be used withTable.aggregate. This would otherwise be ambiguous, as we want a table with a single row. - Namespace
Cell.aggthat wrapspolars's aggregation expressions.
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response