time_stream.aggregation.Sum

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

An aggregation class to calculate the sum (total) 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 sum 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