You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.23.0.txt
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -225,6 +225,34 @@ If installed, we now require:
225
225
| openpyxl | 2.4.0 | |
226
226
+-----------------+-----------------+----------+
227
227
228
+
.. _whatsnew_0230.api_breaking.deprecate_panel:
229
+
230
+
Deprecate Panel
231
+
^^^^^^^^^^^^^^^
232
+
233
+
``Panel`` was deprecated in the 0.20.x release, showing as a ``DeprecationWarning``. Using ``Panel`` will now show a ``FutureWarning``. The recommended way to represent 3-D data are
234
+
with a ``MultiIndex`` on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
235
+
provides a :meth:`~Panel.to_xarray` method to automate this conversion. For more details see :ref:`Deprecate Panel <dsintro.deprecate_panel>` documentation. (:issue:`13563`, :issue:`18324`).
236
+
237
+
.. ipython:: python
238
+
:okwarning:
239
+
240
+
p = tm.makePanel()
241
+
p
242
+
243
+
Convert to a MultiIndex DataFrame
244
+
245
+
.. ipython:: python
246
+
247
+
p.to_frame()
248
+
249
+
Convert to an xarray DataArray
250
+
251
+
.. ipython:: python
252
+
:okwarning:
253
+
254
+
p.to_xarray()
255
+
228
256
229
257
Build Changes
230
258
^^^^^^^^^^^^^
@@ -289,7 +317,6 @@ Deprecations
289
317
- ``Series.valid`` is deprecated. Use :meth:`Series.dropna` instead (:issue:`18800`).
290
318
- :func:`read_excel` has deprecated the ``skip_footer`` parameter. Use ``skipfooter`` instead (:issue:`18836`)
291
319
- The ``is_copy`` attribute is deprecated and will be removed in a future version (:issue:`18801`).
292
-
- ``Panel`` is now a ``FutureWarning``, previsouly a ``DeprecationWarning`` and will be removed in a future version (:issue:`18324`)
0 commit comments