Type Alias: AggFn¶
AggFn = (
values) =>Cell
Aggregation function for GroupedFrame.agg.
Receives all Cell values in a column for one group and returns a
single summary Cell.
Parameters¶
values¶
Cell[]
Returns¶
Example¶
TypeScript
const sum: AggFn = (values) =>
values.reduce((acc, v) => (acc as number) + (v as number), 0);