Skip to content

Commit 51ee4bf

Browse files
committed
BUG: Incorrect TSA index if loc resolves to slice
1 parent b715592 commit 51ee4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

statsmodels/tsa/base/tsa_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def _get_index_loc(self, key, base_index=None):
377377

378378
# Return the index through the end of the loc / slice
379379
if isinstance(loc, slice):
380-
end = loc.stop
380+
end = loc.stop - 1
381381
else:
382382
end = loc
383383

0 commit comments

Comments
 (0)