str.
find
Return lowest indexes in each strings in the Series where the substring is fully contained between [start:end].
Return -1 on failure. Equivalent to standard str.find().
str.find()
Substring being searched.
Left edge index.
Right edge index.
Series of lowest matching indexes.
Examples
>>> s = ps.Series(['apple', 'oranges', 'bananas'])
>>> s.str.find('a') 0 0 1 2 2 1 dtype: int64
>>> s.str.find('a', start=2) 0 -1 1 2 2 3 dtype: int64
>>> s.str.find('a', end=1) 0 0 1 -1 2 -1 dtype: int64
>>> s.str.find('a', start=2, end=2) 0 -1 1 -1 2 -1 dtype: int64