Skip to content

Commit 69468cd

Browse files
committed
updated indexing.py to allow iloc.__getitem__
1 parent c0371ce commit 69468cd

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pandas/core/indexing.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -1582,11 +1582,7 @@ def _validate_key(self, key, axis: AxisInt) -> None:
15821582
if com.is_bool_indexer(key):
15831583
if hasattr(key, "index") and isinstance(key.index, Index):
15841584
if key.index.inferred_type == "integer":
1585-
raise NotImplementedError(
1586-
"iLocation based boolean "
1587-
"indexing on an integer type "
1588-
"is not available"
1589-
)
1585+
return
15901586
raise ValueError(
15911587
"iLocation based boolean indexing cannot use an indexable as a mask"
15921588
)

0 commit comments

Comments
 (0)