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

Method index

numpy/core/defchararray.py:2353–2362  ·  view source on GitHub ↗

Like `find`, but raises `ValueError` when the substring is not found. See Also -------- char.index

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

Source from the content-addressed store, hash-verified

2351 return find(self, sub, start, end)
2352
2353 def index(self, sub, start=0, end=None):
2354 """
2355 Like `find`, but raises `ValueError` when the substring is not found.
2356
2357 See Also
2358 --------
2359 char.index
2360
2361 """
2362 return index(self, sub, start, end)
2363
2364 def isalnum(self):
2365 """

Callers 15

fromfileFunction · 0.45
_make_options_dictFunction · 0.45
linspaceFunction · 0.45
_find_common_coerceFunction · 0.45
find_common_typeFunction · 0.45
_parse_einsum_inputFunction · 0.45
normalize_axis_tupleFunction · 0.45
binary_reprFunction · 0.45
consume_untilMethod · 0.45
_check_orderFunction · 0.45
failMethod · 0.45
test_indexMethod · 0.45

Calls 1

indexFunction · 0.85

Tested by 6

failMethod · 0.36
test_indexMethod · 0.36
_compare_docsFunction · 0.36
test_array_sizeMethod · 0.36
test_inv_array_sizeMethod · 0.36