Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate id as index #700

Merged
merged 5 commits into from
Nov 15, 2023
Merged

deprecate id as index #700

merged 5 commits into from
Nov 15, 2023

Conversation

jmoralez
Copy link
Member

@jmoralez jmoralez commented Nov 14, 2023

Deprecates having the id as the index in the predictions so that the outputs have the same format for pandas and polars and with the other libs. The current behavior will be kept (the outputs will still have the id as the index) but will issue a warning, so the users can do something like:

import statsforecast
statsforecast.config.id_as_index = False

at the top of their scripts and handle the id being a column instead of the index to adopt the new behavior. We will then remove the option in a few versions and return the outputs with the id as a column.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@jmoralez jmoralez marked this pull request as ready for review November 14, 2023 22:42
@jmoralez jmoralez requested a review from AzulGarza November 14, 2023 22:46
Copy link
Member

@AzulGarza AzulGarza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome @jmoralez🤩

@jmoralez jmoralez merged commit 0d2a259 into main Nov 15, 2023
16 checks passed
@jmoralez jmoralez deleted the deprecate-id-index branch November 15, 2023 17:05
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