Make index check on statespace data less strict#434
Make index check on statespace data less strict#434jessegrabowski merged 3 commits intopymc-devs:mainfrom
Conversation
|
For the holes can you check if |
AlexAndorra
left a comment
There was a problem hiding this comment.
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 |
* Make index check less strict * Validate generic index values * Remove redundant check
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.