Skip to content

Commit 377bbf6

Browse files
pratikpatel2512noatamir
authored andcommitted
DOC: Add tuple description to allowed inputs for iloc pandas-dev#47799 (pandas-dev#47989)
DOC: Add tuple description to allowed inputs for iloc
1 parent 103067f commit 377bbf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/indexing.py

+2
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def iloc(self) -> _iLocIndexer:
155155
DataFrame) and that returns valid output for indexing (one of the above).
156156
This is useful in method chains, when you don't have a reference to the
157157
calling object, but would like to base your selection on some value.
158+
- A tuple of row and column indexes. The tuple elements consist of one of the
159+
above inputs, e.g. ``(0, 1)``.
158160
159161
``.iloc`` will raise ``IndexError`` if a requested indexer is
160162
out-of-bounds, except *slice* indexers which allow out-of-bounds

0 commit comments

Comments
 (0)