Skip to content

Commit d829795

Browse files
committed
32-bit compat
1 parent 14b3d3c commit d829795

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/core/groupby/grouper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ def is_in_obj(gpr):
610610
raise ValueError('No group keys passed!')
611611
elif len(groupings) == 0:
612612
groupings.append(Grouping(Index([], dtype='int'),
613-
np.array([], dtype='int')))
613+
np.array([], dtype=np.intp)))
614614

615615
# create the internals grouper
616616
grouper = BaseGrouper(group_axis, groupings, sort=sort, mutated=mutated)

pandas/tests/groupby/test_grouping.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ def test_groupby_empty(self):
580580
# check group properties
581581
assert len(gr.grouper.groupings) == 1
582582
tm.assert_numpy_array_equal(gr.grouper.group_info[0],
583-
np.array([], dtype='int'))
583+
np.array([], dtype=np.intp))
584584

585585
tm.assert_numpy_array_equal(gr.grouper.group_info[1],
586-
np.array([], dtype='int'))
586+
np.array([], dtype=np.intp))
587587

588588
assert gr.grouper.group_info[2] == 0
589589

0 commit comments

Comments
 (0)