Skip to content

Commit 7fcb14f

Browse files
committed
CLN: making copies of targets and values (pandas-dev#35498)
1 parent a662559 commit 7fcb14f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/_libs/index.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ cdef class IndexEngine:
278278
targets_mask = isnaobj(targets)
279279
values_mask = isnaobj(values)
280280
if targets_mask.any():
281+
targets_copy = targets.copy()
282+
values_copy = values.copy()
281283
targets[targets_mask] = 0
282284
values[values_mask] = 0
283285

0 commit comments

Comments
 (0)