numpy.char.
index
Like find, but raises ValueError when the substring is not found.
find
Calls str.index element-wise.
Output array of ints. Returns -1 if sub is not found.
See also
find, str.find
str.find