time_stream.infill.AltData#

class time_stream.infill.AltData(alt_data_column, correction_factor=1.0, alt_df=None)[source]#

Infills missing values using an alternative data source and optional correction factor. The alternative data corresponding to the missing interval is scaled by the correction factor to produce the infilled values.

Parameters:
  • alt_data_column (str)

  • correction_factor (float)

  • alt_df (DataFrame | None)

__init__(alt_data_column, correction_factor=1.0, alt_df=None)[source]#

Initialize the alternative data infill method.

Parameters:
  • alt_data_column (str) – The name of the column providing the alternative data.

  • correction_factor (float) – An optional correction factor to apply to the alternative data.

  • alt_df (DataFrame | None) – The DataFrame containing the alternative data.

Methods

__init__(alt_data_column[, ...])

Initialize the alternative data infill method.

apply(df, time_name, periodicity, infill_column)

Apply the infill method to the time series data.

available()

Return a sorted list of available registered keys.

get(spec, **kwargs)

Resolve spec to an instance of Self:

register(register_cls)

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

Attributes

name