featurebyte.Context.get_forecast_point_feature¶
get_forecast_point_feature( ) -> Any
Description¶
Returns a Feature representing the FORECAST_POINT column with timezone info from this Context's forecast_point_schema.
The returned RequestColumn will have the correct dtype and timezone information as defined in the ForecastPointSchema, enabling local time date part extraction.
Returns¶
- Any
A Feature for FORECAST_POINT with timezone metadata from the schema.
Raises¶
- ValueError
If this Context does not have a forecast_point_schema defined.
Examples¶
Get forecast point from a Context and extract month in local time:
>>> context = catalog.get_context("daily_forecast_context")
>>> forecast_month = context.get_forecast_point_feature().dt.month
>>> forecast_month.name = "Forecast Month (Local)"
Calculate forecast horizon from Context's forecast point: