Skip to content

Commit 7acc09f

Browse files
committed
Minor correction to previous submit
1 parent 6e8f1b3 commit 7acc09f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/category.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def reindex(self, target, method=None, level=None, limit=None,
420420

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

423-
if len(indexer):
423+
if len(self.codes):
424424
new_target = self.take(indexer)
425425
else:
426426
new_target = target

0 commit comments

Comments
 (0)