-
Notifications
You must be signed in to change notification settings - Fork 197
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
[bug] error message is not correct #565
Comments
It is possible that we are not checking if that In my opinion, it would be better to make the default value of the |
This is because we support having no ID and ID as the index, so we have no idea where the ID is and we try to guess, which fills me with joy. Changing the default would mean breaking the correct workflow, which is having the ID as a column and providing its name. |
+1 on voting for deprecating the support for Pandas indices. |
Never mind, what can be in the index is the timestamps. So the only problem is that the data can have no ID and in that case we assign a constant id, so if the data does have an ID but the user doesn't set that as |
Can we do this - Change the default for id_col to None and then
Do you see any issues with it? |
How do we know if we're in number 3? |
Changing the default to None would be a breaking change to everyone who follows the standard we defined in the other libraries (which this library decided not to follow). What I would support would be allowing the id_col to be None and require users to set it to None if they don't have it and they're providing a single serie, which would also be a breaking change. |
Could you clarify which standard this is and what other libraries are we referring to here?
This would be an acceptable compromise if changing the default to None is not acceptable. |
https://nixtlaverse.nixtla.io/statsforecast/docs/getting-started/getting_started_short.html
https://nixtlaverse.nixtla.io/mlforecast/docs/getting-started/quick_start_local.html#data-format
|
Thanks @jmoralez - In that case, your suggestion of not changing the default but accepting the value of None would be good to implement. We should also add checks in that case if the column specified by the user exists or not. |
What happened + What you expected to happen
When passing a missing column name to
id_col
ortime_col
, the error message is either not correct or could be improved.Versions / Dependencies
Click to expand
Dependencies: nixtla 0.6.4Reproducible example
ID Column is missing
In this case, the error message is incorrect. There should be some indication that the
id_col
is incorrect.Time Column is missing
In this case while the error is somewhat correct, it would be a nicer UX to catch this error and relay the error in a better way to the user (indicating that the time_col is missing)
Issue Severity
Low: It annoys or frustrates me.
The text was updated successfully, but these errors were encountered: