We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe491d commit 998f476Copy full SHA for 998f476
pandas/core/indexing.py
@@ -1,5 +1,6 @@
1
# pylint: disable=W0223
2
3
+import warnings
4
import numpy as np
5
from pandas.compat import range, zip
6
import pandas.compat as compat
@@ -1279,6 +1280,14 @@ class _IXIndexer(_NDFrameIndexer):
1279
1280
1281
"""
1282
1283
+ def __init__(self, obj, name):
1284
+ warnings.warn(".ix is deprecated. Please use\n"
1285
+ ".loc for label based indexing or\n"
1286
+ ".iloc for positional indexing\n",
1287
+ FutureWarning, stacklevel=3)
1288
+
1289
+ super(_IXIndexer, self).__init__(obj, name)
1290
1291
def _has_valid_type(self, key, axis):
1292
if isinstance(key, slice):
1293
return True
0 commit comments