This is documentation for an old release of NumPy (version 1.14). Read this page in the documentation of the latest stable release (version 2.2).

numpy.core.defchararray.chararray.rindex

chararray.rindex(sub, start=0, end=None)[source]

Like rfind, but raises ValueError when the substring sub is not found.

See also

char.rindex