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.24.0.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -439,7 +439,7 @@ Deprecations
439
439
- :meth:`MultiIndex.to_hierarchical` is deprecated and will be removed in a future version (:issue:`21613`)
440
440
- :meth:`Series.ptp` is deprecated. Use ``numpy.ptp`` instead (:issue:`21614`)
441
441
- :meth:`Series.compress` is deprecated. Use ``Series[condition]`` instead (:issue:`18262`)
442
-
- :meth:`Categorical.from_codes` has deprecated providing float values for the ``codes`` argument.
442
+
- :meth:`Categorical.from_codes` has deprecated providing float values for the ``codes`` argument. (:issue:`21767`)
443
443
444
444
.. _whatsnew_0240.prior_deprecations:
445
445
@@ -487,7 +487,7 @@ Bug Fixes
487
487
Categorical
488
488
^^^^^^^^^^^
489
489
490
-
- Bug in :meth:`Categorical.from_codes` where ``NaN`` values in `codes` were silently converted to ``0`` (:issue:`21767`)
490
+
- Bug in :meth:`Categorical.from_codes` where ``NaN`` values in `codes` were silently converted to ``0`` (:issue:`21767`). In the future this will raise a ``ValueError``. Also changes the behavior of `.from_codes([1.1, 2.0])`.
0 commit comments