Add Expr.list.agg for aggregating list contents #22650
Labels
accepted
Ready for implementation
enhancement
New feature or an improvement of an existing feature
P-low
Priority: low
This expression would take one argument, a list expression (a concept we don't have yet, see #9189 (comment), essentially just an expression in which you can only use
pl.element()
), which must return a scalar.Then this would evaluate the expression for each list, returning the scalar. For example, to get the difference between the minimum and maximum in each list:
Semantically this would be identical to the current-day:
but it's cleaner to just write
agg
and allows us to ensure that you do indeed return a scalar for each list.The text was updated successfully, but these errors were encountered: