@@ -10,10 +10,11 @@ users upgrade to this version.
1010Highlights include:
1111
1212- The ``.ix`` indexer has been deprecated, see :ref:`here <whatsnew_0200.api_breaking.deprecate_ix>`
13+ - ``Panel`` has been deprecated, see :ref:`here <whatsnew_0200.api_breaking.deprecate_panel>`
1314- Improved user API when accessing levels in ``.groupby()``, see :ref:`here <whatsnew_0200.enhancements.groupby_access>`
1415- Improved support for UInt64 dtypes, see :ref:`here <whatsnew_0200.enhancements.uint64_support>`
15- - Window Binary Corr/Cov operations return a MultiIndex DataFrame rather than a Panel, see :ref:`here <whhatsnew_0200.api_breaking.rolling_pairwise>`
1616- A new orient for JSON serialization, ``orient='table'``, that uses the Table Schema spec, see :ref:`here <whatsnew_0200.enhancements.table_schema>`
17+ - Window Binary Corr/Cov operations return a MultiIndex DataFrame rather than a Panel, see :ref:`here <whhatsnew_0200.api_breaking.rolling_pairwise>`
1718- Support for S3 handling now uses ``s3fs``, see :ref:`here <whatsnew_0200.api_breaking.s3>`
1819- Google BigQuery support now uses the ``pandas-gbq`` library, see :ref:`here <whatsnew_0200.api_breaking.gbq>`
1920- Switched the test framework to use `pytest <http://doc.pytest.org/en/latest>`__ (:issue:`13097`)
@@ -427,6 +428,33 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
427428 df.iloc[[0, 2], df.columns.get_loc('A')]
428429
429430
431+ .. _whatsnew_0200.api_breaking.deprecate_panel:
432+ 
433+ Deprecate Panel
434+ ^^^^^^^^^^^^^^^
435+ 
436+ ``Panel`` is deprecated and will be removed in a future version. The recommended way to represent 3-D data are
437+ with a ``MultiIndex``on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
438+ provides a :meth:`~Panel.to_xarray` method to automate this conversion (:issue:`13563`).
439+ 
440+ .. ipython:: python
441+  :okwarning:
442+ 
443+  p = tm.makePanel()
444+  p
445+ 
446+ Convert to a MultiIndex DataFrame
447+ 
448+ .. ipython:: python
449+ 
450+  p.frame()
451+ 
452+ Convert to an xarray DataArray
453+ 
454+ .. ipython:: python
455+ 
456+  p.to_xarray()
457+ 
430458.. _whatsnew.api_breaking.io_compat:
431459
432460Possible incompat for HDF5 formats for pandas < 0.13.0
0 commit comments