| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../c-api/../generated/numpy.strings.index.html | [Back] [Original] |
Like find, but raises ValueError when the substring is not found.
StringDType, bytes_, or str_ dtypeStringDType, bytes_, or str_ dtypeOutput array of ints.
Examples
>>> import numpy as np
>>> a = np.array(["Computer Science"])
>>> np.strings.index(a, "Science", start=0, end=None)
array([9])
| Web Proxy Viewer | New URL | Original Page |