Skip to content

Commit 764cf2a

Browse files
sylviawhoajreback
authored andcommitted
BUG: not correctly using OrderedDict in test_series_apply (#17384)
in Python versions <3.6 this syntax will result in an unordered dic
1 parent b98e688 commit 764cf2a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/series/test_apply.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ def test_non_callable_aggregates(self):
317317

318318
# test when mixed w/ callable reducers
319319
result = s.agg(['size', 'count', 'mean'])
320-
expected = Series(OrderedDict({'size': 3.0,
321-
'count': 2.0,
322-
'mean': 1.5}))
320+
expected = Series(OrderedDict([('size', 3.0),
321+
('count', 2.0),
322+
('mean', 1.5)]))
323323
assert_series_equal(result[expected.index], expected)
324324

325325

0 commit comments

Comments
 (0)