Skip to content

Commit 106a04f

Browse files
datapythonistajreback
authored andcommitted
DEPR: removing Panel methods to_long and toLong, deprecated in 0.7.0 (19077) (#19067)
1 parent f911765 commit 106a04f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

doc/source/whatsnew/v0.23.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Removal of prior version deprecations/changes
253253
- ``pandas.tseries.frequencies.get_standard_freq`` has been removed in favor of ``pandas.tseries.frequencies.to_offset(freq).rule_code`` (:issue:`13874`)
254254
- The ``freqstr`` keyword has been removed from ``pandas.tseries.frequencies.to_offset`` in favor of ``freq`` (:issue:`13874`)
255255
- The ``Panel4D`` and ``PanelND`` classes have been removed (:issue:`13776`)
256+
- The ``Panel``class has dropped the ``to_long``and ``toLong`` methods (:issue:`19077`)
256257

257258
.. _whatsnew_0230.performance:
258259

pandas/core/panel.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -996,9 +996,6 @@ def construct_index_parts(idx, major=True):
996996

997997
return DataFrame(data, index=index, columns=self.items)
998998

999-
to_long = deprecate('to_long', to_frame)
1000-
toLong = deprecate('toLong', to_frame)
1001-
1002999
def apply(self, func, axis='major', **kwargs):
10031000
"""
10041001
Applies function along axis (or axes) of the Panel

0 commit comments

Comments
 (0)