Skip to content

Commit 23fb339

Browse files
jschendeljreback
authored andcommitted
Fix URL in FutureWarning for .loc[list-of-labels] with missing labels (pandas-dev#19145)
1 parent 45a7012 commit 23fb339

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/indexing.rst

+1
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,7 @@ For getting *multiple* indexers, using ``.get_indexer``:
640640
dfd.iloc[[0, 2], dfd.columns.get_indexer(['A', 'B'])]
641641
642642
643+
.. _deprecate_loc_reindex_listlike:
643644
.. _indexing.deprecate_loc_reindex_listlike:
644645

645646
Indexing with list with missing labels is Deprecated

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1479,7 +1479,7 @@ def _has_valid_type(self, key, axis):
14791479
KeyError in the future, you can use .reindex() as an alternative.
14801480
14811481
See the documentation here:
1482-
http://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike""") # noqa
1482+
https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike""") # noqa
14831483

14841484
if not (ax.is_categorical() or ax.is_interval()):
14851485
warnings.warn(_missing_key_warning,

0 commit comments

Comments
 (0)