Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/pandas-dev/pandas
/ f
Method
f
pandas/tests/frame/methods/test_reindex.py:405–406 ·
view source on GitHub ↗
(val)
Source
from the content-addressed store, hash-verified
403
icol = [
"jim"
,
"joe"
,
"jolie"
]
404
405
def
f(val):
406
return
np.nonzero((df[
"jim"
] == val).to_numpy())[0]
407
408
i = np.concatenate(list(map(f, idx)))
409
left = df.set_index(icol).reindex(idx, level=
"jim"
)
Callers
nothing calls this directly
Calls
2
nonzero
Method · 0.80
to_numpy
Method · 0.45
Tested by
no test coverage detected