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

Differentiate between forecast and history when add_history = TRUE #24

Open
vidarsumo opened this issue Sep 19, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@vidarsumo
Copy link

I think it would be helpful to add a column to the output indicating which part is history and which is forecast when you set add_history = TRUE

Something similar to this.

   unique_id          ds         name         value
   <chr>              <date>     <chr>        <dbl>
 1 felagsgjald_07_pct 2024-05-01 history  195320368
 2 felagsgjald_07_pct 2024-06-01 history  194656304
 3 felagsgjald_07_pct 2024-07-01 history  192950688
 4 felagsgjald_07_pct 2024-08-01 history  187761376
 5 felagsgjald_07_pct 2024-09-01 forecast 185657680
 6 felagsgjald_07_pct 2024-10-01 forecast 185774864
 7 felagsgjald_07_pct 2024-11-01 forecast 198429328
 8 felagsgjald_07_pct 2024-12-01 forecast 194934112
 9 felagsgjald_07_pct 2025-01-01 forecast 187777376
10 felagsgjald_07_pct 2025-02-01 forecast 189336992
11 felagsgjald_07_pct 2025-03-01 forecast 192219104
12 felagsgjald_07_pct 2025-04-01 forecast 194291744
13 felagsgjald_07_pct 2025-05-01 forecast 200309504
14 felagsgjald_07_pct 2025-06-01 forecast 198632576
15 felagsgjald_07_pct 2025-07-01 forecast 196261536
16 felagsgjald_07_pct 2025-08-01 forecast 196332096
17 felagsgjald_07_pct 2025-09-01 forecast 194515232
18 felagsgjald_07_pct 2025-10-01 forecast 194697200
19 felagsgjald_07_pct 2025-11-01 forecast 204339680
20 felagsgjald_07_pct 2025-12-01 forecast 200058864

@MMenchero
Copy link
Collaborator

Thank you for the suggestion, @vidarsumo. Since nixtlar aims to mirror the Python SDK, it might also be worth adding this column there. I will discuss it with the nixtla developers in the upcoming days.

@MMenchero MMenchero added the enhancement New feature or request label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants