From c327729e32464f73cc8249db878f31a8b7738e89 Mon Sep 17 00:00:00 2001 From: xpvpc <> Date: Thu, 8 Feb 2018 11:41:21 +0100 Subject: [PATCH] DOC: doc/source/indexing.rst says pd.df.ix is deprecated, show warning in generated doc. --- pandas/core/indexing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pandas/core/indexing.py b/pandas/core/indexing.py index 9463512ac11de..352ce921d1d44 100755 --- a/pandas/core/indexing.py +++ b/pandas/core/indexing.py @@ -1300,6 +1300,9 @@ class _IXIndexer(_NDFrameIndexer): """A primarily label-location based indexer, with integer position fallback. + Warning: Starting in 0.20.0, the .ix indexer is deprecated, in + favor of the more strict .iloc and .loc indexers. + ``.ix[]`` supports mixed integer and label based access. It is primarily label based, but will fall back to integer positional access unless the corresponding axis is of integer type.