utils

Functions

_get_labels_names(trend_transform, segments)

If only unique transform classes are used then show their short names (without parameters).

_get_seasonal_cycle_name(timestamp, cycle)

Get unique name for each cycle in a series with timestamps.

_get_seasonal_in_cycle_name(timestamp, ...)

Get unique name for each point within the cycle in a series of timestamps.

_get_seasonal_in_cycle_num(timestamp, ...)

Get number for each point within cycle in a series of timestamps.

_prepare_seasonal_plot_df(ts, freq, cycle, ...)

_resample(df, freq, aggregation)

_seasonal_split(timestamp, freq, cycle)

Create a seasonal split into cycles of a given timestamp.

Classes

SeasonalPlotAggregation(value)

Enum for types of aggregation in a seasonal plot.

SeasonalPlotAlignment(value)

Enum for types of alignment in a seasonal plot.

SeasonalPlotCycle(value)

Enum for types of cycles in a seasonal plot.

class SeasonalPlotAggregation(value)[source]

Enum for types of aggregation in a seasonal plot.

get_function()[source]

Get aggregation function.

class SeasonalPlotAlignment(value)[source]

Enum for types of alignment in a seasonal plot.

first

make first period full, allow last period to have NaNs in the ending

last

make last period full, allow first period to have NaNs in the beginning

class SeasonalPlotCycle(value)[source]

Enum for types of cycles in a seasonal plot.