Skip to content

Commit e66128c

Browse files
committed
CLN: consolidating stargets if statement (#35498)
1 parent e69709a commit e66128c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/index.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ cdef class IndexEngine:
278278
values_mask = isnaobj(values)
279279
targets_mask = isnaobj(targets)
280280
stargets = set(targets)
281-
if targets_mask.any():
281+
if -1 not in stargets and targets_mask.any():
282282
stargets.add(-1)
283283
n = len(values)
284284
n_t = len(targets)

0 commit comments

Comments
 (0)