Skip to content

Commit fec3023

Browse files
committed
BUG: handling of missing values in Index._reindex_non_unique with non unique target
1 parent 489e52a commit fec3023

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3627,7 +3627,7 @@ def _reindex_non_unique(self, target):
36273627
else:
36283628

36293629
# need to retake to have the same size as the indexer
3630-
indexer[~check] = 0
3630+
indexer[~check] = -1
36313631

36323632
# reset the new indexer to account for the new size
36333633
new_indexer = np.arange(len(self.take(indexer)))

0 commit comments

Comments
 (0)