bigframes.pandas.api.typing.StringMethods.len#

StringMethods.len() T[source]#

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

The element may be a sequence (such as a string, tuple or list) or a collection (such as a dictionary).

Examples:

>>> import bigframes.pandas as bpd

Returns the length (number of characters) in a string.

>>> s = bpd.Series(['dog', '', pd.NA])
>>> s.str.len()
0       3
1       0
2    <NA>
dtype: Int64
Returns:

A Series or Index of integer values indicating

the length of each element in the Series or Index.

Return type:

bigframes.series.Series