-
-
Notifications
You must be signed in to change notification settings - Fork 59
Make index check on statespace data less strict #434
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
Conversation
For the holes can you check if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jessegrabowski ! Looks good, modulo Ricardo's comment.
One issue is that if the index has holes (like the index goes 0, 1, 3, 4, ...), it will just be totally ignored, and internally we'll treat it as though it was continuous. I might be able to check for this, but it might also be the type of thing that you have to trust users to do the right thing with. Open to suggestions.
Should we error out and tell users they should pass in the missing data points so that they are inferred? Or at least display a warning that highlights that with this behavior, all data points are assumed to be linearly spaced?
The thing already warns pretty aggressively, so I'm not really inclined to go that route (if anything I think we should go the other way and remove some of the useless warnings). I don't have a good sense of whether an index |
My intuition is that it's a shorthand for [1, 2, 3, NaN, 5], so if |
Closes #384
I was assuming that any pandas index of integers was a
RangeIndex
; this will now accept anything.One issue is that if the index has holes (like the index goes 0, 1, 3, 4, ...), it will just be totally ignored, and internally we'll treat it as though it was continuous. I might be able to check for this, but it might also be the type of thing that you have to trust users to do the right thing with. Open to suggestions.