-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Add multi-column support to AggFormula (#6206)
### Python examples: ``` from deephaven import empty_table from deephaven import agg source = empty_table(20).update( ["X = i", "Y = 2 * i", "Z = 3 * i", "Letter = (X % 2 == 0) ? `A` : `B`"] ) result = source.agg_by([ agg.formula(formula="out_a=sqrt(5.0)"), agg.formula(formula="out_b=min(X)"), agg.formula(formula="out_c=min(X) + max(Y)"), agg.formula(formula="out_d=sum(X + Y + Z)"), ], by=["Letter"]) ``` ### Groovy examples: ``` source = emptyTable(20).update("X = i", "Y = 2 * i", "Z = 3 * i", "Letter = (X % 2 == 0) ? `A` : `B`") result = source.aggBy([ AggFormula("out_a=sqrt(5.0)"), AggFormula("out_b=min(X)"), AggFormula("out_c=min(X) + max(Y)"), AggFormula("out_d=sum(X + Y + Z)"), ], "Letter") ```
- Loading branch information
Showing
25 changed files
with
4,540 additions
and
3,391 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.