From 7879d549601f2f7b1b3f37dd96d612f296f3577e Mon Sep 17 00:00:00 2001 From: gfyoung Date: Thu, 18 Aug 2016 22:25:57 -0400 Subject: [PATCH] CLN: Removed DataFrame.to_wide --- doc/source/whatsnew/v0.19.0.txt | 1 + pandas/core/frame.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/source/whatsnew/v0.19.0.txt b/doc/source/whatsnew/v0.19.0.txt index cc3cc631b9575..f6a03a613f75f 100644 --- a/doc/source/whatsnew/v0.19.0.txt +++ b/doc/source/whatsnew/v0.19.0.txt @@ -894,6 +894,7 @@ Removal of prior version deprecations/changes - ``Panel.shift()`` has dropped the ``lags`` parameter in favour of ``periods`` (:issue:`14041`) - ``pd.Index`` has dropped the ``diff`` method in favour of ``difference`` (:issue:`13669`) +- ``pd.DataFrame`` has dropped the ``to_wide`` method in favour of ``to_panel`` (:issue:`14039`) - ``Series.to_csv`` has dropped the ``nanRep`` parameter in favor of ``na_rep`` (:issue:`13804`) - ``Series.xs``, ``DataFrame.xs``, ``Panel.xs``, ``Panel.major_xs``, and ``Panel.minor_xs`` have dropped the ``copy`` parameter (:issue:`13781`) - ``str.split`` has dropped the ``return_type`` parameter in favor of ``expand`` (:issue:`13701`) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5db755b0d3dac..fa46ee4829cb9 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -78,8 +78,7 @@ OrderedDict, raise_with_traceback) from pandas import compat from pandas.compat.numpy import function as nv -from pandas.util.decorators import (deprecate, Appender, Substitution, - deprecate_kwarg) +from pandas.util.decorators import deprecate_kwarg, Appender, Substitution from pandas.tseries.period import PeriodIndex from pandas.tseries.index import DatetimeIndex @@ -1300,8 +1299,6 @@ def to_panel(self): return self._constructor_expanddim(new_mgr) - to_wide = deprecate('to_wide', to_panel) - def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, columns=None, header=True, index=True, index_label=None, mode='w', encoding=None, compression=None, quoting=None,