polars.Series.str.concat#
- Series.str.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
Series of data type
Utf8
.
Examples
>>> pl.Series([1, None, 2]).str.concat("-")[0] '1-null-2'