@@ -61,8 +61,8 @@ of multi-axis indexing.
61
61
* A list or array of labels ``['a', 'b', 'c'] ``.
62
62
* A slice object with labels ``'a':'f' `` (Note that contrary to usual python
63
63
slices, **both ** the start and the stop are included, when present in the
64
- index! See :ref: `Slicing with labels
65
- <indexing.slicing_with_labels >`.).
64
+ index! See :ref: `Slicing with labels < indexing.slicing_with_labels >`
65
+ and :ref: ` Endpoints are inclusive < advanced.endpoints_are_inclusive >`.)
66
66
* A boolean array
67
67
* A ``callable `` function with one argument (the calling Series or DataFrame) and
68
68
that returns valid output for indexing (one of the above).
@@ -335,8 +335,7 @@ The ``.loc`` attribute is the primary access method. The following are valid inp
335
335
* A list or array of labels ``['a', 'b', 'c'] ``.
336
336
* A slice object with labels ``'a':'f' `` (Note that contrary to usual python
337
337
slices, **both ** the start and the stop are included, when present in the
338
- index! See :ref: `Slicing with labels
339
- <indexing.slicing_with_labels>`.).
338
+ index! See :ref: `Slicing with labels <indexing.slicing_with_labels >`.
340
339
* A boolean array.
341
340
* A ``callable ``, see :ref: `Selection By Callable <indexing.callable >`.
342
341
@@ -418,6 +417,9 @@ error will be raised (since doing otherwise would be computationally expensive,
418
417
as well as potentially ambiguous for mixed type indexes). For instance, in the
419
418
above example, ``s.loc[1:6] `` would raise ``KeyError ``.
420
419
420
+ For the rationale behind this behavior, see
421
+ :ref: `Endpoints are inclusive <advanced.endpoints_are_inclusive >`.
422
+
421
423
.. _indexing.integer :
422
424
423
425
Selection by position
0 commit comments