bigframes.pandas.api.typing.StringMethods#

class bigframes.pandas.api.typing.StringMethods(data: T)[source]#

Vectorized string functions for Series and Index.

NAs stay NA unless handled otherwise by a particular method. Patterned after Python’s string methods, with some inspiration from R’s stringr package.

Methods

__init__(data)

capitalize()

Convert strings in the Series/Index to be capitalized.

cat(others, *[, join])

Concatenate strings in the Series/Index with given separator.

center(width[, fillchar])

Pad left and right side of strings in the Series/Index.

contains(pat[, case, flags, regex])

Test if pattern or regex is contained within a string of a Series or Index.

endswith(pat)

Test if the end of each string element matches a pattern.

extract(pat[, flags])

Extract capture groups in the regex pat as columns in a DataFrame.

find(sub[, start, end])

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

fullmatch(pat[, case, flags])

Determine if each string entirely matches a regular expression.

get(i)

Extract element from each component at specified position or with specified key.

isalnum()

Check whether all characters in each string are alphanumeric.

isalpha()

Check whether all characters in each string are alphabetic.

isdecimal()

Check whether all characters in each string are decimal.

isdigit()

Check whether all characters in each string are digits.

islower()

Check whether all characters in each string are lowercase.

isnumeric()

Check whether all characters in each string are numeric.

isspace()

Check whether all characters in each string are whitespace.

isupper()

Check whether all characters in each string are uppercase.

join(sep)

Join lists contained as elements in the Series/Index with passed delimiter.

len()

Compute the length of each element in the Series/Index.

ljust(width[, fillchar])

Pad right side of strings in the Series/Index up to width.

lower()

Convert strings in the Series/Index to lowercase.

lstrip([to_strip])

Remove leading characters.

match(pat[, case, flags])

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

pad(width[, side, fillchar])

Pad strings in the Series/Index up to width.

repeat(repeats)

Duplicate each string in the Series or Index.

replace(pat, repl, *[, case, flags, regex])

Replace each occurrence of pattern/regex in the Series/Index.

reverse()

Reverse strings in the Series.

rjust(width[, fillchar])

Pad left side of strings in the Series/Index up to width.

rstrip([to_strip])

Remove trailing characters.

slice([start, stop])

Slice substrings from each element in the Series or Index.

split([pat, regex])

Split strings around given separator/delimiter.

startswith(pat)

Test if the start of each string element matches a pattern.

strip([to_strip])

Remove leading and trailing characters.

to_blob([connection])

Create a BigFrames Blob series from a series of URIs.

upper()

Convert strings in the Series/Index to uppercase.

zfill(width)

Pad strings in the Series/Index by prepending '0' characters.