bigframes.pandas.api.typing.StringMethods.endswith#
- StringMethods.endswith(pat: str | tuple[str, ...]) T[source]#
Test if the end of each string element matches a pattern.
Examples:
>>> import bigframes.pandas as bpd
>>> s = bpd.Series(['bat', 'bear', 'caT', pd.NA]) >>> s 0 bat 1 bear 2 caT 3 <NA> dtype: string
>>> s.str.endswith('t') 0 True 1 False 2 False 3 <NA> dtype: boolean
>>> s.str.endswith(('t', 'T')) 0 True 1 False 2 True 3 <NA> dtype: boolean