MCPcopy Create free account
hub / github.com/numpy/numpy / find

Method find

numpy/core/defchararray.py:2341–2351  ·  view source on GitHub ↗

For each element, return the lowest index in the string where substring `sub` is found. See Also -------- char.find

(self, sub, start=0, end=None)

Source from the content-addressed store, hash-verified

2339 return asarray(expandtabs(self, tabsize))
2340
2341 def find(self, sub, start=0, end=None):
2342 """
2343 For each element, return the lowest index in the string where
2344 substring `sub` is found.
2345
2346 See Also
2347 --------
2348 char.find
2349
2350 """
2351 return find(self, sub, start, end)
2352
2353 def index(self, sub, start=0, end=None):
2354 """

Callers 15

check_doctestsFunction · 0.80
einsumFunction · 0.80
assert_raises_fpeFunction · 0.80
test_findMethod · 0.80
test_recarray_reprMethod · 0.80
assert_raises_fpeMethod · 0.80
extras.pyFile · 0.80
fromtextfileFunction · 0.80
_logMethod · 0.80
parse_targetsMethod · 0.80
parse_structureFunction · 0.80

Calls 1

findFunction · 0.85

Tested by 6

assert_raises_fpeFunction · 0.64
test_findMethod · 0.64
test_recarray_reprMethod · 0.64
assert_raises_fpeMethod · 0.64
test_build_importFunction · 0.64