Skip to content

fix: keep all the features in pipeline when h is 0 - #291

Merged
Mariana Menchero García (MMenchero) merged 2 commits into
Nixtla:mainfrom
Blizzeq:fix/pipeline-zero-horizon
Oct 5, 2026
Merged

Mariana Menchero García (MMenchero) merged 2 commits into
Nixtla:mainfrom
Blizzeq:fix/pipeline-zero-horizon

Conversation

@Blizzeq

Copy link
Copy Markdown
Contributor

pipeline took the feature column names from each function's future dataframe, which is empty when h=0 (the default). On pandas that silently dropped every feature after the first one, and on polars it raised DuplicateError, because selecting an empty list of columns returns all of them. For h=0 I now take the names from the columns the function added to the input, and leave the h > 0 path as it was. Added a test that runs the pipeline with h=0 on pandas and polars and compares it with the features computed one by one.

@MMenchero

Copy link
Copy Markdown
Contributor

Thank you for your contribution Jakub Krasuski (@Blizzeq).

@MMenchero
Mariana Menchero García (MMenchero) merged commit 64708bd into Nixtla:main Oct 5, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants