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
BUG/DEPR: Categorical: keep dtype in MultiIndex (pandas-dev#13743), deprecate .from_array
Now, categorical dtype is preserved also in `groupby`, `set_index`, `stack`,
`get_dummies`, and `make_axis_dummies`.
closespandas-dev#13743closespandas-dev#13854
- ``Panel4D`` and ``PanelND`` constructors are deprecated and will be removed in a future version. The recommended way to represent these types of n-dimensional data are with the `xarray package <http://xarray.pydata.org/en/stable/>`__. Pandas provides a :meth:`~Panel4D.to_xarray` method to automate this conversion. (:issue:`13564`)
1174
1247
- ``pandas.tseries.frequencies.get_standard_freq`` is deprecated. Use ``pandas.tseries.frequencies.to_offset(freq).rule_code`` instead. (:issue:`13874`)
1175
1248
- ``pandas.tseries.frequencies.to_offset``'s ``freqstr`` keyword is deprecated in favor of ``freq``. (:issue:`13874`)
1176
-
1249
+
- ``Categorical.from_array`` has been deprecated and will be removed in a future version (:issue:`13854`)
1177
1250
1178
1251
.. _whatsnew_0190.prior_deprecations:
1179
1252
@@ -1388,3 +1461,4 @@ Bug Fixes
1388
1461
- Bug in ``.to_string()`` when called with an integer ``line_width`` and ``index=False`` raises an UnboundLocalError exception because ``idx`` referenced before assignment.
1389
1462
1390
1463
- Bug in ``eval()`` where the ``resolvers`` argument would not accept a list (:issue`14095`)
1464
+
- Bugs in ``stack``, ``get_dummies``, ``make_axis_dummies`` which don't preserve categorical dtypes in (multi)indexes (:issue:`13854`)
0 commit comments