Like rfind, but raises ValueError when the substring sub is not found.
np.bytes_ or np.str_ dtype
np.bytes_ or np.str_ dtype
Output array of ints.
See also
>>> a = np.array(["Computer Science"]) >>> np.strings.rindex(a, "Science", start=0, end=None) array([9])
© 2005–2024 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/2.4/reference/generated/numpy.char.rindex.html