Skip to content

Commit 53447f4

Browse files
gfyoungjorisvandenbossche
authored andcommitted
CLN: Removed DataFrame.to_wide (#14039)
1 parent 49af018 commit 53447f4

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

doc/source/whatsnew/v0.19.0.txt

+1
Original file line numberDiff line numberDiff line change
@@ -894,6 +894,7 @@ Removal of prior version deprecations/changes
894894
- ``Panel.shift()`` has dropped the ``lags`` parameter in favour of ``periods`` (:issue:`14041`)
895895
- ``pd.Index`` has dropped the ``diff`` method in favour of ``difference`` (:issue:`13669`)
896896

897+
- ``pd.DataFrame`` has dropped the ``to_wide`` method in favour of ``to_panel`` (:issue:`14039`)
897898
- ``Series.to_csv`` has dropped the ``nanRep`` parameter in favor of ``na_rep`` (:issue:`13804`)
898899
- ``Series.xs``, ``DataFrame.xs``, ``Panel.xs``, ``Panel.major_xs``, and ``Panel.minor_xs`` have dropped the ``copy`` parameter (:issue:`13781`)
899900
- ``str.split`` has dropped the ``return_type`` parameter in favor of ``expand`` (:issue:`13701`)

pandas/core/frame.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
OrderedDict, raise_with_traceback)
7979
from pandas import compat
8080
from pandas.compat.numpy import function as nv
81-
from pandas.util.decorators import (deprecate, Appender, Substitution,
82-
deprecate_kwarg)
81+
from pandas.util.decorators import deprecate_kwarg, Appender, Substitution
8382

8483
from pandas.tseries.period import PeriodIndex
8584
from pandas.tseries.index import DatetimeIndex
@@ -1300,8 +1299,6 @@ def to_panel(self):
13001299

13011300
return self._constructor_expanddim(new_mgr)
13021301

1303-
to_wide = deprecate('to_wide', to_panel)
1304-
13051302
def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
13061303
columns=None, header=True, index=True, index_label=None,
13071304
mode='w', encoding=None, compression=None, quoting=None,

0 commit comments

Comments
 (0)