Permalink
Browse files

BUG: cast indexers to platform int for 32-bit systems

  • Loading branch information...
1 parent 330c067 commit 4690d51fb042d549f41ce8c18ce26a205e542c27 @wesm wesm committed May 26, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 pandas/core/index.py
@@ -886,6 +886,9 @@ def _join_non_unique(self, other, how='left', return_indexers=False):
left_idx, right_idx = _get_join_indexers([self.values], [other.values],
how=how, sort=True)
+ left_idx = com._ensure_platform_int(left_idx)
+ right_idx = com._ensure_platform_int(right_idx)
+
join_index = self.values.take(left_idx)
mask = left_idx == -1
np.putmask(join_index, mask, other.values.take(right_idx))

0 comments on commit 4690d51

Please sign in to comment.