time_stream.infill.AltData

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

Infill from an alternative data source, with optional correction factor.

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