| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.api.typing.StringMethods.join.html | [Back] [Original] |
Section Navigation
Join lists contained as elements in the Series/Index with passed delimiter.
If the elements of a Series are lists themselves, join the content of these
lists using the delimiter passed to the function.
This function is an equivalent to str.join().
Examples:
>>> import bigframes.pandas as bpd
Example with a list that contains non-string elements.
>>> s = bpd.Series([['lion', 'elephant', 'zebra'],
... ['dragon'],
... ['duck', 'swan', 'fish', 'guppy']])
>>> s
0 ['lion' 'elephant' 'zebra']
1 ['dragon']
2 ['duck' 'swan' 'fish' 'guppy']
dtype: list<item: string>[pyarrow]
>>> s.str.join('-')
0 lion-elephant-zebra
1 dragon
2 duck-swan-fish-guppy
dtype: string
sep (str) Delimiter to use between list entries.
The list entries concatenated by intervening occurrences of the delimiter.
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |