MCPcopy
hub / github.com/numpy/numpy / index

Method index

numpy/_core/defchararray.py:842–852  ·  view source on GitHub ↗

Like `find`, but raises :exc:`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

840 return find(self, sub, start, end)
841
842 def index(self, sub, start=0, end=None):
843 """
844 Like `find`, but raises :exc:`ValueError` when the substring is not
845 found.
846
847 See Also
848 --------
849 char.index
850
851 """
852 return index(self, sub, start, end)
853
854 def isalnum(self):
855 """

Callers 15

fromfileFunction · 0.45
_make_options_dictFunction · 0.45
__new__Method · 0.45
linspaceFunction · 0.45
_parse_einsum_inputFunction · 0.45
normalize_axis_tupleFunction · 0.45
binary_reprFunction · 0.45
consume_untilMethod · 0.45
_check_orderFunction · 0.45
test_argmaxFunction · 0.45

Calls 1

indexFunction · 0.85

Tested by 10

test_argmaxFunction · 0.36
test_stable_orderingMethod · 0.36
failMethod · 0.36
test_indexMethod · 0.36
test_indexMethod · 0.36
test_index_raisesMethod · 0.36
test_index_unicodeMethod · 0.36
test_array_sizeMethod · 0.36
test_inv_array_sizeMethod · 0.36