@@ -313,8 +313,10 @@ Selection by label
313
313
314
314
.. warning ::
315
315
316
- Starting in 0.21.0, pandas will show a ``FutureWarning `` if indexing with a list with missing labels. In the future
317
- this will raise a ``KeyError ``. See :ref: `list-like Using loc with missing keys in a list is Deprecated <indexing.deprecate_loc_reindex_listlike >`.
316
+ .. versionchanged :: 1.0.0
317
+
318
+ Pandas will raise a ``KeyError `` if indexing with a list with missing labels. See :ref: `list-like Using loc with
319
+ missing keys in a list is Deprecated <indexing.deprecate_loc_reindex_listlike>`.
318
320
319
321
pandas provides a suite of methods in order to have **purely label based indexing **. This is a strict inclusion based protocol.
320
322
Every label asked for must be in the index, or a ``KeyError `` will be raised.
@@ -578,8 +580,9 @@ IX indexer is deprecated
578
580
579
581
.. warning ::
580
582
581
- Starting in 0.20.0, the ``.ix `` indexer is deprecated, in favor of the more strict ``.iloc ``
582
- and ``.loc `` indexers.
583
+ .. versionchanged :: 1.0.0
584
+
585
+ The ``.ix `` indexer was removed, in favor of the more strict ``.iloc `` and ``.loc `` indexers.
583
586
584
587
``.ix `` offers a lot of magic on the inference of what the user wants to do. To wit, ``.ix `` can decide
585
588
to index *positionally * OR via *labels * depending on the data type of the index. This has caused quite a
@@ -636,11 +639,13 @@ Indexing with list with missing labels is deprecated
636
639
637
640
.. warning ::
638
641
639
- Starting in 0.21.0, using ``.loc `` or ``[] `` with a list with one or more missing labels, is deprecated, in favor of ``.reindex ``.
642
+ .. versionchanged :: 1.0.0
643
+
644
+ Using ``.loc `` or ``[] `` with a list with one or more missing labels will no longer reindex, in favor of ``.reindex ``.
640
645
641
646
In prior versions, using ``.loc[list-of-labels] `` would work as long as *at least 1 * of the keys was found (otherwise it
642
- would raise a ``KeyError ``). This behavior is deprecated and will show a warning message pointing to this section. The
643
- recommended alternative is to use ``.reindex() ``.
647
+ would raise a ``KeyError ``). This behavior was changed and will now raise a `` KeyError `` if at least one label is missing.
648
+ The recommended alternative is to use ``.reindex() ``.
644
649
645
650
For example.
646
651
0 commit comments