Skip to content

Commit

Permalink
COMPAT: 32bit compat on indexing for MI.remove_unused_levels (#15948)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreback authored Apr 8, 2017
1 parent 751119f commit 84de51c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pandas/indexes/multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1224,6 +1224,7 @@ def _sort_levels_monotonic(self):
lev = lev.take(indexer)

# indexer to reorder the labels
indexer = _ensure_int64(indexer)
ri = lib.get_reverse_indexer(indexer, len(indexer))
lab = algos.take_1d(ri, lab)

Expand Down

0 comments on commit 84de51c

Please sign in to comment.