@@ -47,11 +47,6 @@ def test_value_counts(index_or_series_obj):
4747 # i.e IntegerDtype
4848 expected = expected .astype ("Int64" )
4949
50- # TODO(GH#32514): Order of entries with the same count is inconsistent
51- # on CI (gh-32449)
52- if obj .duplicated ().any ():
53- result = result .sort_index ()
54- expected = expected .sort_index ()
5550 tm .assert_series_equal (result , expected )
5651
5752
@@ -89,11 +84,6 @@ def test_value_counts_null(null_obj, index_or_series_obj):
8984 expected .index .name = obj .name
9085
9186 result = obj .value_counts ()
92- if obj .duplicated ().any ():
93- # TODO(GH#32514):
94- # Order of entries with the same count is inconsistent on CI (gh-32449)
95- expected = expected .sort_index ()
96- result = result .sort_index ()
9787
9888 if not isinstance (result .dtype , np .dtype ):
9989 if getattr (obj .dtype , "storage" , "" ) == "pyarrow" :
@@ -106,11 +96,8 @@ def test_value_counts_null(null_obj, index_or_series_obj):
10696 expected [null_obj ] = 3
10797
10898 result = obj .value_counts (dropna = False )
109- if obj .duplicated ().any ():
110- # TODO(GH#32514):
111- # Order of entries with the same count is inconsistent on CI (gh-32449)
112- expected = expected .sort_index ()
113- result = result .sort_index ()
99+ expected = expected .sort_index ()
100+ result = result .sort_index ()
114101 tm .assert_series_equal (result , expected )
115102
116103
0 commit comments