We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ef6b33 commit e69709aCopy full SHA for e69709a
pandas/_libs/index.pyx
@@ -336,12 +336,16 @@ cdef class IndexEngine:
336
n_alloc += 10_000
337
result = np.resize(result, n_alloc)
338
339
+ # -1 in targets could be either -1 or nan
340
+ # ensures values in d[-1] to be included only once
341
if val == -1:
342
nan_val = values_mask[j]
343
+ # nan
344
if nan_target:
345
if nan_val:
346
result[count] = j
347
count += 1
348
+ # -1
349
else:
350
if not nan_val:
351
0 commit comments