Skip to content

Commit 08a135f

Browse files
committed
32bit builds
1 parent 4905bd4 commit 08a135f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/resample/test_resampler_grouper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ def f_1(x):
264264
return x.resample("2s").apply(lambda y: y.sum())
265265

266266
result = g.apply(f_1)
267-
# y.sum() results in int64 instead of int32 on 32-bit architectures
268-
expected = expected.astype("int64")
269267
tm.assert_frame_equal(result, expected)
270268

271269

@@ -295,7 +293,9 @@ def test_apply_columns_multilevel():
295293
# GH 16231
296294
cols = pd.MultiIndex.from_tuples([("A", "a", "", "one"), ("B", "b", "i", "two")])
297295
ind = date_range(start="2017-01-01", freq="15Min", periods=8)
298-
df = DataFrame(np.array([0] * 16).reshape(8, 2), index=ind, columns=cols)
296+
df = DataFrame(
297+
np.array([0] * 16, dtype=np.int64).reshape(8, 2), index=ind, columns=cols
298+
)
299299
agg_dict = {col: (np.sum if col[3] == "one" else np.mean) for col in df.columns}
300300
result = df.resample("h").apply(lambda x: agg_dict[x.name](x))
301301
expected = DataFrame(

0 commit comments

Comments
 (0)