File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1405,17 +1405,16 @@ class _IXIndexer(_NDFrameIndexer):
1405
1405
See more at :ref:`Advanced Indexing <advanced>`.
1406
1406
"""
1407
1407
1408
- def __init__ (self , name , obj ):
1409
-
1410
- _ix_deprecation_warning = textwrap .dedent ("""
1411
- .ix is deprecated. Please use
1412
- .loc for label based indexing or
1413
- .iloc for positional indexing
1408
+ _ix_deprecation_warning = textwrap .dedent ("""
1409
+ .ix is deprecated. Please use
1410
+ .loc for label based indexing or
1411
+ .iloc for positional indexing
1414
1412
1415
- See the documentation here:
1416
- http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated""" ) # noqa
1413
+ See the documentation here:
1414
+ http://pandas.pydata.org/pandas-docs/stable/indexing.html#ix-indexer-is-deprecated""" ) # noqa
1417
1415
1418
- warnings .warn (_ix_deprecation_warning ,
1416
+ def __init__ (self , name , obj ):
1417
+ warnings .warn (self ._ix_deprecation_warning ,
1419
1418
DeprecationWarning , stacklevel = 2 )
1420
1419
super (_IXIndexer , self ).__init__ (name , obj )
1421
1420
You can’t perform that action at this time.
0 commit comments