File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -84,14 +84,17 @@ of multi-axis indexing.
84
84
85
85
See more at :ref: `Selection by Label <indexing.label >`
86
86
87
- - ``.iloc `` is strictly integer position based (from ``0 `` to ``length-1 `` of
88
- the axis), will raise ``IndexError `` if an indexer is requested and it
89
- is out-of-bounds, except *slice * indexers which allow out-of-bounds indexing.
90
- (this conforms with python/numpy *slice * semantics). Allowed inputs are:
87
+ - ``.iloc `` is primarily integer position based (from ``0 `` to
88
+ ``length-1 `` of the axis), but may also be used with a boolean
89
+ array. ``.iloc `` will raise ``IndexError `` if a requested
90
+ indexer is out-of-bounds, except *slice * indexers which allow
91
+ out-of-bounds indexing. (this conforms with python/numpy *slice *
92
+ semantics). Allowed inputs are:
91
93
92
94
- An integer e.g. ``5 ``
93
95
- A list or array of integers ``[4, 3, 0] ``
94
96
- A slice object with ints ``1:7 ``
97
+ - A boolean array
95
98
96
99
See more at :ref: `Selection by Position <indexing.integer >`
97
100
@@ -368,6 +371,7 @@ The ``.iloc`` attribute is the primary access method. The following are valid in
368
371
- An integer e.g. ``5 ``
369
372
- A list or array of integers ``[4, 3, 0] ``
370
373
- A slice object with ints ``1:7 ``
374
+ - A boolean array
371
375
372
376
.. ipython :: python
373
377
You can’t perform that action at this time.
0 commit comments