Repository navigation
BUG/TST: TSA models: _get_index_label_loc failed when using row labels. - #5250
Conversation
1f27785 to
fe926ec
Compare
fe926ec to
93b0b2a
Compare
| # pandas.Index.get_loc as of 0.23.4) | ||
| else: | ||
| loc = loc[0] | ||
| if not isinstance(loc, numbers.Integral): |
There was a problem hiding this comment.
Will this get e.g. np.int64(2)? (And is that a relevant case?)
There was a problem hiding this comment.
It will get it, and it is a relevant case!
There was a problem hiding this comment.
Good. Here's a corner case that surprised me:
t = np.timedelta64(3, 'ns')
isinstance(t, numbers.Integral)
True
Not really worth worrying about here.
There was a problem hiding this comment.
:( that makes me sad. Maybe there's a good reason for that.
Codecov Report
@@ Coverage Diff @@
## master #5250 +/- ##
==========================================
- Coverage 81.7% 81.66% -0.04%
==========================================
Files 569 569
Lines 89628 89678 +50
Branches 10025 10029 +4
==========================================
+ Hits 73227 73239 +12
- Misses 14130 14161 +31
- Partials 2271 2278 +7
Continue to review full report at Codecov.
|
|
Green, will merge tomorrow unless there are concerns. |
The bug causes problems with
predict. For example:would yield a: