From a26f1992bfcec23b8636a2c35cfeecab82f87c64 Mon Sep 17 00:00:00 2001 From: jreback Date: Mon, 25 Mar 2013 16:03:46 -0400 Subject: [PATCH] TST: resample test custom_grouper haveing dtype comp error on 32-bit from GH2763 changes --- pandas/tseries/tests/test_resample.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pandas/tseries/tests/test_resample.py b/pandas/tseries/tests/test_resample.py index f1594b154f2cc..140f40fd611c8 100644 --- a/pandas/tseries/tests/test_resample.py +++ b/pandas/tseries/tests/test_resample.py @@ -44,8 +44,7 @@ def test_custom_grouper(self): dti = DatetimeIndex(freq='Min', start=datetime(2005, 1, 1), end=datetime(2005, 1, 10)) - data = np.array([1] * len(dti)) - s = Series(data, index=dti) + s = Series(np.array([1] * len(dti)), index=dti, dtype='int64') b = TimeGrouper(Minute(5)) g = s.groupby(b) @@ -75,8 +74,7 @@ def test_custom_grouper(self): result = g.agg(np.sum) assert_series_equal(result, expect) - data = np.random.rand(len(dti), 10) - df = DataFrame(data, index=dti) + df = DataFrame(np.random.rand(len(dti), 10), index=dti, dtype='float64') r = df.groupby(b).agg(np.sum) self.assertEquals(len(r.columns), 10)