On this page
numpy.char.rfind
numpy.char.rfind(a, sub, start=0, end=None)-
For each element in
a, return the highest index in the string where substringsubis found, such thatsubis contained within [start,end].Calls
str.rfindelement-wise.- Parameters
-
aarray-like of str or unicodesubstr or unicodestart, endint, optional-
Optional arguments
startandendare interpreted as in slice notation.
- Returns
-
outndarray-
Output array of ints. Return -1 on failure.
See also
© 2005–2020 NumPy Developers
Licensed under the 3-clause BSD License.
https://numpy.org/doc/1.19/reference/generated/numpy.char.rfind.html