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.17.0.txt
+18
Original file line number
Diff line number
Diff line change
@@ -303,7 +303,22 @@ Other API Changes
303
303
- Allow passing `kwargs` to the interpolation methods (:issue:`10378`).
304
304
- Serialize metadata properties of subclasses of pandas objects (:issue:`10553`).
305
305
- ``Categorical.name`` was removed to make `Categorical` more ``numpy.ndarray`` like. Use ``Series(cat, name="whatever")`` instead (:issue:`10482`).
306
+
- ``Categorical.unique`` now returns new ``Categorical`` which ``categories`` and ``codes`` are unique, rather than returnning ``np.array`` (:issue:`10508`)
306
307
308
+
- unordered category: values and categories are sorted by appearance order.
309
+
- ordered category: values are sorted by appearance order, categories keeps existing order.
0 commit comments