From f0b335621fbbea62624f285b317e52fff87e2575 Mon Sep 17 00:00:00 2001 From: pratikpatel2512 Date: Sat, 6 Aug 2022 13:33:03 +0530 Subject: [PATCH] DOC: Add tuple description to allowed inputs for iloc --- pandas/core/indexing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index fa1ad7ce3c874..4e242e33627a4 100644 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -155,6 +155,8 @@ def iloc(self) -> _iLocIndexer: DataFrame) and that returns valid output for indexing (one of the above). This is useful in method chains, when you don't have a reference to the calling object, but would like to base your selection on some value. + - A tuple of row and column indexes. The tuple elements consist of one of the + above inputs, e.g. ``(0, 1)``. ``.iloc`` will raise ``IndexError`` if a requested indexer is out-of-bounds, except *slice* indexers which allow out-of-bounds