time_stream.aggregation.Mean

class time_stream.aggregation.Mean(**kwargs)[source]

An aggregation class to calculate the mean (average) of values within each aggregation period.

__init__(**kwargs)

Methods

__init__(**kwargs)

available()

Return a sorted list of available registered keys.

expr(ctx, columns)

Return the Polars expression for calculating the mean in an aggregation period.

get(spec, **kwargs)

Resolve spec to an instance of Self:

post_expr(_ctx, _columns)

Return additional Polars expressions to be applied after the aggregation.

register(register_cls)

A method used as a decorator for subclasses to add to the register by its name attribute.

Attributes

name