EnricherSelector Class

Defines the base class of all enricher selectors.

Inheritance
builtins.object
EnricherSelector

Constructor

EnricherSelector()

Remarks

Use the granularity property to set the granularity of an enricher.


   EnricherSelector.granularity = DayGranularity()

Methods

process

Process the enricher selector.

process

Process the enricher selector.

process(customer_data: TimeData, public_data: TimeData, aggregator: Aggregator, join_keys: List[Tuple[str, str]] | None = None, debug: bool = False)

Parameters

customer_data
TimeData
Required

An instance of a TimeData dervived class.

public_data
TimeData
Required

An instance of a TimeData derived class.

aggregator
Aggregator
Required

An aggregator.

join_keys
list
default value: None

A list of join key pairs.

debug
bool
default value: False

Indicates whether to print debug logs.

Returns

A tuple of altered customer data class instance, altered public data class instance, and a list of join key pairs.

Return type

Attributes

granularity

Get granularity.