From 06b5cf8f5c3ce02e01cd305c081e964da3d118cf Mon Sep 17 00:00:00 2001 From: Sylvia Date: Wed, 30 Aug 2017 15:56:32 -0400 Subject: [PATCH] updates OrderedDict bug in Python versions <3.6 this syntax will result in an unordered dict --- pandas/tests/series/test_apply.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandas/tests/series/test_apply.py b/pandas/tests/series/test_apply.py index e3be5427588b3..d0693984689a6 100644 --- a/pandas/tests/series/test_apply.py +++ b/pandas/tests/series/test_apply.py @@ -317,9 +317,9 @@ def test_non_callable_aggregates(self): # test when mixed w/ callable reducers result = s.agg(['size', 'count', 'mean']) - expected = Series(OrderedDict({'size': 3.0, - 'count': 2.0, - 'mean': 1.5})) + expected = Series(OrderedDict([('size', 3.0), + ('count', 2.0), + ('mean', 1.5)])) assert_series_equal(result[expected.index], expected)