Skip to content

Commit 1cf2c6b

Browse files
committed
removed _contains_slice
1 parent 46c78bd commit 1cf2c6b

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pandas/core/indexing.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,14 +1126,6 @@ def _getitem_nested_tuple(self, tup: tuple):
11261126
# we have a nested tuple so have at least 1 multi-index level
11271127
# we should be able to match up the dimensionality here
11281128

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-
11371129
for key in tup:
11381130
check_dict_or_set_indexers(key)
11391131

0 commit comments

Comments
 (0)