From a27c6ece92986fab90477d55305d0323f9e26f96 Mon Sep 17 00:00:00 2001 From: Jeff Tratner Date: Thu, 7 Nov 2013 22:59:38 -0500 Subject: [PATCH] TST: Fix test case to use int64 and explicit float --- pandas/tests/test_series.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/tests/test_series.py b/pandas/tests/test_series.py index f866c1b229fe5..b6f0387835c22 100644 --- a/pandas/tests/test_series.py +++ b/pandas/tests/test_series.py @@ -1724,7 +1724,7 @@ def test_mode(self): exp = Series([11, 12]) assert_series_equal(s.mode(), exp) - assert_series_equal(Series([1, 2, 3]).mode(), Series([], dtype=int)) + assert_series_equal(Series([1, 2, 3]).mode(), Series([], dtype='int64')) lst = [5] * 20 + [1] * 10 + [6] * 25 np.random.shuffle(lst) @@ -1736,7 +1736,7 @@ def test_mode(self): s = Series(lst) s[0] = np.nan - assert_series_equal(s.mode(), Series([6], dtype=float)) + assert_series_equal(s.mode(), Series([6.])) s = Series(list('adfasbasfwewefwefweeeeasdfasnbam')) assert_series_equal(s.mode(), Series(['e']))