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
+32
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
^^^^^^^^^^^^^
@@ -273,6 +301,7 @@ Other API Changes
273
301
- The default ``Timedelta`` constructor now accepts an ``ISO 8601 Duration`` string as an argument (:issue:`19040`)
274
302
- ``IntervalDtype`` now returns ``True`` when compared against ``'interval'`` regardless of subtype, and ``IntervalDtype.name`` now returns ``'interval'`` regardless of subtype (:issue:`18980`)
275
303
- :func:`Series.to_csv` now accepts a ``compression`` argument that works in the same way as the ``compression`` argument in :func:`DataFrame.to_csv` (:issue:`18958`)
304
+
- Addition or subtraction of ``NaT`` from :class:`TimedeltaIndex` will return ``TimedeltaIndex`` instead of ``DatetimeIndex`` (:issue:`19124`)
276
305
277
306
.. _whatsnew_0230.deprecations:
278
307
@@ -290,6 +319,7 @@ Deprecations
290
319
- :func:`read_excel` has deprecated the ``skip_footer`` parameter. Use ``skipfooter`` instead (:issue:`18836`)
291
320
- The ``is_copy`` attribute is deprecated and will be removed in a future version (:issue:`18801`).
292
321
322
+
293
323
.. _whatsnew_0230.prior_deprecations:
294
324
295
325
Removal of prior version deprecations/changes
@@ -454,6 +484,8 @@ Reshaping
454
484
^^^^^^^^^
455
485
456
486
- Bug in :func:`DataFrame.stack` which fails trying to sort mixed type levels under Python 3 (:issue:`18310`)
487
+
- Bug in :func:`DataFrame.unstack` which casts int to float if ``columns`` is a ``MultiIndex`` with unused levels (:issue:`17845`)
488
+
- Bug in :func:`DataFrame.unstack` which raises an error if ``index`` is a ``MultiIndex`` with unused labels on the unstacked level (:issue:`18562`)
457
489
- Fixed construction of a :class:`Series` from a ``dict`` containing ``NaN`` as key (:issue:`18480`)
458
490
- Bug in :func:`Series.rank` where ``Series`` containing ``NaT`` modifies the ``Series`` inplace (:issue:`18521`)
459
491
- Bug in :func:`cut` which fails when using readonly arrays (:issue:`18773`)
0 commit comments