time_stream.aggregation.Percentile

class time_stream.aggregation.Percentile(p)[source]

An aggregation class to find the nth percentile of values within each aggregation period.

Parameters:

p (int)

__init__(p)[source]

Initialise Percentile aggregation.

Parameters:

p (int) – The integer percentile value to apply.

Methods

__init__(p)

Initialise Percentile aggregation.

available()

Return a sorted list of available registered keys.

expr(ctx, columns)

Return the 'Polars' expression for calculating the percentile

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