Skip to content

Commit

Permalink
Minor correction to previous submit
Browse files Browse the repository at this point in the history
  • Loading branch information
ri938 committed Jul 7, 2017
1 parent 69454ec commit 0a20024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/indexes/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def reindex(self, target, method=None, level=None, limit=None,

indexer, missing = self.get_indexer_non_unique(np.array(target))

if len(indexer):
if len(self.codes):
new_target = self.take(indexer)
else:
new_target = target
Expand Down

0 comments on commit 0a20024

Please sign in to comment.