-
numpy.core.defchararray.rfind(a, sub, start=0, end=None)
[source] -
For each element in
a
, return the highest index in the string where substringsub
is found, such thatsub
is contained within [start
,end
].Calls
str.rfind
element-wise.Parameters: a : array-like of str or unicode
sub : str or unicode
start, end : int, optional
Optional arguments
start
andend
are interpreted as in slice notation.Returns: out : ndarray
Output array of ints. Return -1 on failure.
See also
numpy.core.defchararray.rfind()
2017-01-10 18:13:24
Please login to continue.