Skip to content

Commit 29b1aa7

Browse files
committed
Merge pull request pandas-dev#8451 from jsexauer/fix_delevel
Remove DataFrame.delevel
2 parents 0e69f9e + 115596b commit 29b1aa7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/source/v0.15.0.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,8 @@ Deprecations
720720
``ambiguous`` to allow for more flexibility in dealing with DST transitions.
721721
Replace ``infer_dst=True`` with ``ambiguous='infer'`` for the same behavior (:issue:`7943`).
722722
See :ref:`the docs<timeseries.timezone_ambiguous>` for more details.
723-
723+
- Remove ``DataFrame.delevel`` method in favor of ``DataFrame.reset_index``
724+
(:issue:`420`)
724725
.. _whatsnew_0150.index_set_ops:
725726

726727
- The ``Index`` set operations ``+`` and ``-`` were deprecated in order to provide these for numeric type operations on certain index types. ``+`` can be replace by ``.union()`` or ``|``, and ``-`` by ``.difference()``. Further the method name ``Index.diff()`` is deprecated and can be replaced by ``Index.difference()`` (:issue:`8226`)

pandas/core/frame.py

-1
Original file line numberDiff line numberDiff line change
@@ -2511,7 +2511,6 @@ def _maybe_casted_values(index, labels=None):
25112511
if not inplace:
25122512
return new_obj
25132513

2514-
delevel = deprecate('delevel', reset_index)
25152514

25162515
#----------------------------------------------------------------------
25172516
# Reindex-based selection methods

0 commit comments

Comments
 (0)