From cfc1d84dd4bb6383dda728e8c2102648882394b5 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Thu, 4 Jan 2018 13:56:31 +0000 Subject: [PATCH] DEPR: removing Panel methods to_long and toLong, deprecated in 0.7.0 (19077) --- doc/source/whatsnew/v0.23.0.txt | 1 + pandas/core/panel.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/source/whatsnew/v0.23.0.txt b/doc/source/whatsnew/v0.23.0.txt index ea4245cb3281e..c8fe00eb5521f 100644 --- a/doc/source/whatsnew/v0.23.0.txt +++ b/doc/source/whatsnew/v0.23.0.txt @@ -253,6 +253,7 @@ Removal of prior version deprecations/changes - ``pandas.tseries.frequencies.get_standard_freq`` has been removed in favor of ``pandas.tseries.frequencies.to_offset(freq).rule_code`` (:issue:`13874`) - The ``freqstr`` keyword has been removed from ``pandas.tseries.frequencies.to_offset`` in favor of ``freq`` (:issue:`13874`) - The ``Panel4D`` and ``PanelND`` classes have been removed (:issue:`13776`) +- The ``Panel``class has dropped the ``to_long``and ``toLong`` methods (:issue:`19077`) .. _whatsnew_0230.performance: diff --git a/pandas/core/panel.py b/pandas/core/panel.py index b7111a6d0d5bf..1937a57939c87 100644 --- a/pandas/core/panel.py +++ b/pandas/core/panel.py @@ -996,9 +996,6 @@ def construct_index_parts(idx, major=True): return DataFrame(data, index=index, columns=self.items) - to_long = deprecate('to_long', to_frame) - toLong = deprecate('toLong', to_frame) - def apply(self, func, axis='major', **kwargs): """ Applies function along axis (or axes) of the Panel