polars.internals.expr.ExprStringNameSpace.concat

ExprStringNameSpace.concat(delimiter: str = '-') polars.internals.expr.Expr

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

Returns
Series of dtype Utf8

Examples

>>> df = pl.DataFrame({"foo": [1, None, 2]})
>>> df = df.select(pl.col("foo").str.concat("-"))
>>> df
shape: (1, 1)
┌──────────┐
│ foo      │
│ ---      │
│ str      │
╞══════════╡
│ 1-null-2 │
└──────────┘