Skip to content

Commit 5a286e4

Browse files
jorisvandenbosschejreback
authored andcommitted
DEPR: Change .ix DeprecationWarning -> FutureWarning (pandas-dev#26438)
1 parent 6cf3b5c commit 5a286e4

18 files changed

+113
-112
lines changed

doc/source/whatsnew/v0.25.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ Other API Changes
257257
Deprecations
258258
~~~~~~~~~~~~
259259

260+
- The deprecated ``.ix[]`` indexer now raises a more visible FutureWarning instead of DeprecationWarning (:issue:`26438`).
260261
- Deprecated the ``units=M`` (months) and ``units=Y`` (year) parameters for ``units`` of :func:`pandas.to_timedelta`, :func:`pandas.Timedelta` and :func:`pandas.TimedeltaIndex` (:issue:`16344`)
261262
- The functions :func:`pandas.to_datetime` and :func:`pandas.to_timedelta` have deprecated the ``box`` keyword. Instead, use :meth:`to_numpy` or :meth:`Timestamp.to_datetime64` or :meth:`Timedelta.to_timedelta64`. (:issue:`24416`)
262263
- The :meth:`DataFrame.compound` and :meth:`Series.compound` methods are deprecated and will be removed in a future version.

pandas/core/indexing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ class _IXIndexer(_NDFrameIndexer):
14191419

14201420
def __init__(self, name, obj):
14211421
warnings.warn(self._ix_deprecation_warning,
1422-
DeprecationWarning, stacklevel=2)
1422+
FutureWarning, stacklevel=2)
14231423
super().__init__(name, obj)
14241424

14251425
@Appender(_NDFrameIndexer._validate_key.__doc__)

0 commit comments

Comments
 (0)