Aggregation API#

Pass AggregateFnV2 objects to Dataset.aggregate() or Dataset.groupby().aggregate() to compute aggregations.

AggregateFnV2

Provides an interface to implement efficient aggregations to be applied to the dataset.

AggregateFn

NOTE: THIS IS DEPRECATED, PLEASE USE AggregateFnV2 INSTEAD

Count

Defines count aggregation.

Sum

Defines sum aggregation.

Min

Defines min aggregation.

Max

Defines max aggregation.

Mean

Defines mean (average) aggregation.

Std

Defines standard deviation aggregation.

AbsMax

Defines absolute max aggregation.

Quantile

Defines Quantile aggregation.

Unique

Defines unique aggregation.

ValueCounter

Counts the number of times each value appears in a column.

MissingValuePercentage

Calculates the percentage of null values in a column.

ZeroPercentage

Calculates the percentage of zero values in a numeric column.

ApproximateQuantile

PublicAPI (alpha): This API is in alpha and may change before becoming stable.

ApproximateTopK

PublicAPI (alpha): This API is in alpha and may change before becoming stable.