| [ Web Proxy ] |
| Viewing: https://numpy.org/doc/stable/reference/generated/../c-api/../generated/numpy.strings.find.html | [Back] [Original] |
For each element, return the lowest index in the string where
substring sub is found, such that sub is contained in the
range [start, end).
StringDType, bytes_ or str_ dtypebytes_ or str_ dtypeThe substring to search for.
The range to look in, interpreted as in slice notation.
Output array of ints
See also
Examples
>>> import numpy as np
>>> a = np.array(["NumPy is a Python library"])
>>> np.strings.find(a, "Python")
array([11])
| Web Proxy Viewer | New URL | Original Page |