TimeNearestSelector Class
Defines the time nearest selector with rounding to different time granularities.
Intialize with time granularity.
- Inheritance
-
TimeNearestSelector
Constructor
TimeNearestSelector(_granularity: TimeGranularity, enable_telemetry: bool = True)
Parameters
Name | Description |
---|---|
_granularity
Required
|
|
enable_telemetry
|
default value: True
|
Methods
process |
Enrich customer data with public data using the specified aggregator. |
process
Enrich customer data with public data using the specified aggregator.
process(env: RuntimeEnv, customer_data: TimeData, public_data: TimeData, aggregator: Aggregator, join_keys: list | None = None, debug: bool = False)
Parameters
Name | Description |
---|---|
env
Required
|
The runtime environment. |
customer_data
Required
|
An instance of a TimeData derived class. |
public_data
Required
|
An instance of a TimeData derived class. |
aggregator
Required
|
An aggregator. |
join_keys
|
A list of join key pairs. default value: None
|
debug
|
Indicates whether to print debug logs. default value: False
|
Returns
Type | Description |
---|---|
A tuple of altered customer data class instance, altered public data class instance, and a list of join key pairs. |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for