Skip to content

Commit

Permalink
DEPR: Change .ix DeprecationWarning -> FutureWarning (#26438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisvandenbossche authored and jreback committed May 19, 2019
1 parent 6cf3b5c commit 5a286e4
Show file tree
Hide file tree
Showing 18 changed files with 113 additions and 112 deletions.
1 change: 1 addition & 0 deletions doc/source/whatsnew/v0.25.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ Other API Changes
Deprecations
~~~~~~~~~~~~

- The deprecated ``.ix[]`` indexer now raises a more visible FutureWarning instead of DeprecationWarning (:issue:`26438`).
- 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`)
- 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`)
- The :meth:`DataFrame.compound` and :meth:`Series.compound` methods are deprecated and will be removed in a future version.
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,7 @@ class _IXIndexer(_NDFrameIndexer):

def __init__(self, name, obj):
warnings.warn(self._ix_deprecation_warning,
DeprecationWarning, stacklevel=2)
FutureWarning, stacklevel=2)
super().__init__(name, obj)

@Appender(_NDFrameIndexer._validate_key.__doc__)
Expand Down
Loading

0 comments on commit 5a286e4

Please sign in to comment.