combine_forecast_input_datasets#
- openstef_meta.utils.datasets.combine_forecast_input_datasets(input_data: ForecastInputDataset, additional_features: ForecastInputDataset | None, join: str = 'inner') ForecastInputDataset[source]#
Combine base forecaster predictions with optional additional features.
- Parameters:
input_data (
ForecastInputDataset) – ForecastInputDataset containing base forecaster predictions.additional_features (
ForecastInputDataset|None) – Optional ForecastInputDataset containing additional features to combine.join (
str) – How to combine the datasets. “inner” (default) keeps only shared timestamps. “left” keeps the fullinput_dataindex authoritative, aligning additional features onto it and leaving uncovered rows as NaN.input_data
additional_features
join
- Returns:
Combined ForecastInputDataset containing both input data and additional features.
- Return type: