@@ -47,11 +47,6 @@ def test_value_counts(index_or_series_obj):
47
47
# i.e IntegerDtype
48
48
expected = expected .astype ("Int64" )
49
49
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 ()
55
50
tm .assert_series_equal (result , expected )
56
51
57
52
@@ -89,11 +84,6 @@ def test_value_counts_null(null_obj, index_or_series_obj):
89
84
expected .index .name = obj .name
90
85
91
86
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 ()
97
87
98
88
if not isinstance (result .dtype , np .dtype ):
99
89
if getattr (obj .dtype , "storage" , "" ) == "pyarrow" :
@@ -106,11 +96,8 @@ def test_value_counts_null(null_obj, index_or_series_obj):
106
96
expected [null_obj ] = 3
107
97
108
98
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 ()
114
101
tm .assert_series_equal (result , expected )
115
102
116
103
0 commit comments