[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.api.typing.StringMethods.find.html [Back]  [Original]

bigframes.pandas.api.typing.StringMethods.find — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.api.typing.StringMethods.find#

StringMethods.find(sub: str, start: int | None = None, end: int | None = None) T[source]#

Return lowest indexes in each strings in the Series/Index.

Each of returned indexes corresponds to the position where the substring is fully contained between [start:end]. Return -1 on failure. Equivalent to standard str.find().

Examples:

>>> import bigframes.pandas as bpd
>>> ser = bpd.Series(["cow_", "duck_", "do_ve"])
>>> ser.str.find("_")
0    3
1    4
2    2
dtype: Int64
Parameters:
  • sub (str) Substring being searched.

  • start (int, default 0) Left edge index.

  • end (int, default None) Right edge index.

Returns:

Series with lowest indexes in each strings.

Return type:

bigframes.series.Series


Web Proxy Viewer  |  New URL  |  Original Page