@@ -10,10 +10,11 @@ users upgrade to this version.
10
10
Highlights include:
11
11
12
12
- 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>`
13
14
- Improved user API when accessing levels in ``.groupby()``, see :ref:`here <whatsnew_0200.enhancements.groupby_access>`
14
15
- 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>`
16
16
- 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>`
17
18
- Support for S3 handling now uses ``s3fs``, see :ref:`here <whatsnew_0200.api_breaking.s3>`
18
19
- Google BigQuery support now uses the ``pandas-gbq`` library, see :ref:`here <whatsnew_0200.api_breaking.gbq>`
19
20
- Switched the test framework to use `pytest <http://doc.pytest.org/en/latest>`__ (:issue:`13097`)
@@ -425,6 +426,33 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
425
426
df.iloc[[0, 2], df.columns.get_loc('A')]
426
427
427
428
429
+ .. _whatsnew_0200.api_breaking.deprecate_panel:
430
+
431
+ Deprecate Panel
432
+ ^^^^^^^^^^^^^^^
433
+
434
+ ``Panel`` is deprecated and will be removed in a future version. The recommended way to represent 3-D data are
435
+ with a ``MultiIndex``on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
436
+ provides a :meth:`~Panel.to_xarray` method to automate this conversion (:issue:`13563`).
437
+
438
+ .. ipython:: python
439
+ :okwarning:
440
+
441
+ p = tm.makePanel()
442
+ p
443
+
444
+ Convert to a MultiIndex DataFrame
445
+
446
+ .. ipython:: python
447
+
448
+ p.frame()
449
+
450
+ Convert to an xarray DataArray
451
+
452
+ .. ipython:: python
453
+
454
+ p.to_xarray()
455
+
428
456
.. _whatsnew.api_breaking.io_compat:
429
457
430
458
Possible incompat for HDF5 formats for pandas < 0.13.0
0 commit comments