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
In [2]: cat = pd.Categorical(['b', None, 'a'], categories=['a', 'b'], ordered=True)
702
+
703
+
In [3]: cat.argsort()
704
+
Out[3]: array([1, 2, 0])
705
+
706
+
In [4]: cat[cat.argsort()]
707
+
Out[4]:
708
+
[NaN, a, b]
709
+
categories (2, object): [a < b]
710
+
711
+
*New behavior*
712
+
713
+
.. ipython:: python
714
+
715
+
cat.argsort()
716
+
cat[cat.argsort()]
687
717
688
718
.. _whatsnew_0250.api_breaking.deps:
689
719
@@ -767,6 +797,7 @@ Other API changes
767
797
- Removed support of gtk package for clipboards (:issue:`26563`)
768
798
- Using an unsupported version of Beautiful Soup 4 will now raise an ``ImportError`` instead of a ``ValueError`` (:issue:`27063`)
769
799
- :meth:`Series.to_excel`and :meth:`DataFrame.to_excel` will now raise a ``ValueError`` when saving timezone aware data. (:issue:`27008`, :issue:`7056`)
800
+
- :meth:`ExtensionArray.argsort` places NA values at the end of the sorted array. (:issue:`21801`)
770
801
- :meth:`DataFrame.to_hdf`and :meth:`Series.to_hdf` will now raise a ``NotImplementedError`` when saving a :class:`MultiIndex`with extention data types for a ``fixed``format. (:issue:`7775`)
771
802
- Passing duplicate ``names``in :meth:`read_csv` will now raise a ``ValueError`` (:issue:`17346`)
0 commit comments