From ef0bd29f5a3050804e6e2c2b139d60b4322cd064 Mon Sep 17 00:00:00 2001 From: jschendel Date: Mon, 8 Jan 2018 18:30:42 -0700 Subject: [PATCH] Fix URL in FutureWarning for .loc[list-of-labels] with missing labels --- doc/source/indexing.rst | 1 + pandas/core/indexing.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index 4ebc8b82aaa47..750b260c7f228 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -640,6 +640,7 @@ For getting *multiple* indexers, using ``.get_indexer``: dfd.iloc[[0, 2], dfd.columns.get_indexer(['A', 'B'])] +.. _deprecate_loc_reindex_listlike: .. _indexing.deprecate_loc_reindex_listlike: Indexing with list with missing labels is Deprecated diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index fa6614d27cd19..e2c4043f0508d 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1479,7 +1479,7 @@ def _has_valid_type(self, key, axis): KeyError in the future, you can use .reindex() as an alternative. See the documentation here: - http://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike""") # noqa + https://pandas.pydata.org/pandas-docs/stable/indexing.html#deprecate-loc-reindex-listlike""") # noqa if not (ax.is_categorical() or ax.is_interval()): warnings.warn(_missing_key_warning,