Skip to content

Commit 8b28862

Browse files
committed
BUG: hopefully fixed factor_indexer in reshape.py; failed on 32-bit platformsx
1 parent 6211936 commit 8b28862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/reshape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,4 +835,4 @@ def block2d_to_blocknd(values, items, shape, labels, ref_items=None):
835835
def factor_indexer(shape, labels):
836836
""" given a tuple of shape and a list of Factor lables, return the expanded label indexer """
837837
mult = np.array(shape)[::-1].cumprod()[::-1]
838-
return (np.sum(np.array(labels).T * np.append(mult, [1]), axis=1).T).astype('i8')
838+
return com._ensure_platform_int(np.sum(np.array(labels).T * np.append(mult, [1]), axis=1).T)

0 commit comments

Comments
 (0)