We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ac35e7 commit 880b361Copy full SHA for 880b361
pandas/core/arrays/interval.py
@@ -544,10 +544,10 @@ def __iter__(self):
544
def __len__(self) -> int:
545
return len(self._left)
546
547
- def __getitem__(self, value):
548
- value = check_array_indexer(self, value)
549
- left = self._left[value]
550
- right = self._right[value]
+ def __getitem__(self, key):
+ key = check_array_indexer(self, key)
+ left = self._left[key]
+ right = self._right[key]
551
552
if not isinstance(left, (np.ndarray, ExtensionArray)):
553
# scalar
0 commit comments