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 46c78bd commit 1cf2c6bCopy full SHA for 1cf2c6b
pandas/core/indexing.py
@@ -1126,14 +1126,6 @@ def _getitem_nested_tuple(self, tup: tuple):
1126
# we have a nested tuple so have at least 1 multi-index level
1127
# we should be able to match up the dimensionality here
1128
1129
- def _contains_slice(x: object) -> bool:
1130
- # Check if object is a slice or a tuple containing a slice
1131
- if isinstance(x, tuple):
1132
- return any(isinstance(v, slice) for v in x)
1133
- elif isinstance(x, slice):
1134
- return True
1135
- return False
1136
-
1137
for key in tup:
1138
check_dict_or_set_indexers(key)
1139
0 commit comments