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.20.0.txt
+29-1
Original file line number
Diff line number
Diff line change
@@ -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`)
@@ -423,6 +424,33 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi
423
424
df.iloc[[0, 2], df.columns.get_loc('A')]
424
425
425
426
427
+
.. _whatsnew_0200.api_breaking.deprecate_panel:
428
+
429
+
Deprecate Panel
430
+
^^^^^^^^^^^^^^^
431
+
432
+
``Panel`` is deprecated and will be removed in a future version. The recommended way to represent 3-D data are
433
+
with a ``MultiIndex``on a ``DataFrame`` via the :meth:`~Panel.to_frame` or with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas
434
+
provides a :meth:`~Panel.to_xarray` method to automate this conversion (:issue:`13563`).
435
+
436
+
.. ipython:: python
437
+
:okwarning:
438
+
439
+
p = tm.makePanel()
440
+
p
441
+
442
+
Convert to a MultiIndex DataFrame
443
+
444
+
.. ipython:: python
445
+
446
+
p.frame()
447
+
448
+
Convert to an xarray DataArray
449
+
450
+
.. ipython:: python
451
+
452
+
p.to_xarray()
453
+
426
454
.. _whatsnew.api_breaking.io_compat:
427
455
428
456
Possible incompat for HDF5 formats for pandas < 0.13.0
0 commit comments