bigframes.pandas.api.typing.StringMethods.match#

StringMethods.match(pat, case=True, flags=0) T[source]#

Determine if each string starts with a match of a regular expression.

Examples:

>>> import bigframes.pandas as bpd
>>> ser = bpd.Series(["horse", "eagle", "donkey"])
>>> ser.str.match("e")
0   False
1   True
2   False
dtype: boolean
Parameters:
  • pat (str) – Character sequence or regular expression.

  • case (bool) – If True, case sensitive.

  • flags (int, default 0) – Regex module flags, e.g. re.IGNORECASE.

Returns:

Series of boolean values

Return type:

bigframes.series.Series