numpy.core.defchararray.index
-
numpy.core.defchararray.index(a, sub, start=0, end=None)[source] -
Как
find, но вызывает исключениеValueErrorпри отсутствии подстроки.Вызывает
str.indexпоэлементно.Параметры: a : массив_подобный str или unicode
sub : str или unicode
start, end : int, необязательно
Возвращает: out : ndarray
Массив выходных значений целого типа. Возвращает -1, если
subне найдено.
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.14.5/reference/generated/numpy.core.defchararray.index.html