MCPcopy
hub / github.com/numpy/numpy / find

Method find

numpy/_core/defchararray.py:830–840  ·  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

828 return asarray(expandtabs(self, tabsize))
829
830 def find(self, sub, start=0, end=None):
831 """
832 For each element, return the lowest index in the string where
833 substring `sub` is found.
834
835 See Also
836 --------
837 char.find
838
839 """
840 return find(self, sub, start, end)
841
842 def index(self, sub, start=0, end=None):
843 """

Callers 15

strip_commentsFunction · 0.80
assert_raises_fpeFunction · 0.80
test_findMethod · 0.80
test_findMethod · 0.80
test_find_non_long_argsFunction · 0.80
test_recarray_reprMethod · 0.80
assert_raises_fpeMethod · 0.80
parse_structureFunction · 0.80
parse_loop_headerFunction · 0.80

Calls 1

findFunction · 0.85

Tested by 9

assert_raises_fpeFunction · 0.64
test_findMethod · 0.64
test_findMethod · 0.64
test_find_non_long_argsFunction · 0.64
test_recarray_reprMethod · 0.64
assert_raises_fpeMethod · 0.64