numpy.core.defchararray.index(a,sub,start=0,end=None)[source]¶Likefind, but raisesValueError when the substring is not found.
Callsstr.index element-wise.
| Parameters: | a : array_like of str or unicode sub : str or unicode start, end : int, optional |
|---|---|
| Returns: | out : ndarray
|