bigframes.pandas.api.typing.StringMethods.capitalize#
- StringMethods.capitalize() T[source]#
Convert strings in the Series/Index to be capitalized.
Equivalent to
str.capitalize().Examples:
>>> import bigframes.pandas as bpd
>>> s = bpd.Series(['lower', ... 'CAPITALS', ... 'this is a sentence', ... 'SwApCaSe']) >>> s.str.capitalize() 0 Lower 1 Capitals 2 This is a sentence 3 Swapcase dtype: string
- Returns:
Series with captitalized strings.
- Return type: