pandas.Series.str.find
-
Series.str.find(sub, start=0, end=None)[source] -
Возвращает наименьшие индексы в каждой строке в Series/Index, где подстрока полностью содержится между [start:end]. Возвращает -1 при неудаче. Эквивалентно стандартной функции
str.find().Параметры: -
sub : str -
Искомая подстрока
-
start : int -
Индекс левой границы
-
end : int -
Индекс правой границы
Возвращает: -
found : Series/Index of integer values
См. также
-
rfind - Возвращает наибольшие индексы в каждой строке.
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/api/pandas.Series.str.find.html