File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -1403,6 +1403,8 @@ def to_panel(self):
1403
1403
Transform long (stacked) format (DataFrame) into wide (3D, Panel)
1404
1404
format.
1405
1405
1406
+ .. deprecated:: 0.20.0
1407
+
1406
1408
Currently the index of the DataFrame must be a 2-level MultiIndex. This
1407
1409
may be generalized later
1408
1410
Original file line number Diff line number Diff line change @@ -111,6 +111,13 @@ class Panel(NDFrame):
111
111
"""
112
112
Represents wide format panel data, stored as 3-dimensional array
113
113
114
+ .. deprecated:: 0.20.0
115
+ The recommended way to represent 3-D data are with a MultiIndex on a
116
+ DataFrame via the :attr:`~Panel.to_frame()` method or with the
117
+ `xarray package <http://xarray.pydata.org/en/stable/>`__.
118
+ Pandas provides a :attr:`~Panel.to_xarray()` method to automate this
119
+ conversion.
120
+
114
121
Parameters
115
122
----------
116
123
data : ndarray (items x major x minor), or dict of DataFrames
You can’t perform that action at this time.
0 commit comments