polars.internals.series.string.StringNameSpace.concat#

StringNameSpace.concat(delimiter: str = '-') Series[source]#

Vertically concat the values in the Series to a single string value.

Parameters:
delimiter

The delimiter to insert between consecutive string values.

Returns:
Series of dtype Utf8

Examples

>>> pl.Series([1, None, 2]).str.concat("-")[0]
'1-null-2'