From 51729c1285377a5c257fdc01aec6eedaf5ef4133 Mon Sep 17 00:00:00 2001 From: FBruzzesi Date: Fri, 4 Oct 2024 16:58:13 +0200 Subject: [PATCH] cast to str on native dask series --- narwhals/_dask/namespace.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/narwhals/_dask/namespace.py b/narwhals/_dask/namespace.py index 5b0f5f4a9..25ab1b83a 100644 --- a/narwhals/_dask/namespace.py +++ b/narwhals/_dask/namespace.py @@ -293,11 +293,7 @@ def concat_str( ] def func(df: DaskLazyFrame) -> list[dask_expr.Series]: - series = ( - s - for _expr in parsed_exprs - for s in _expr.cast(self._dtypes.String())._call(df) - ) + series = (s.astype(str) for _expr in parsed_exprs for s in _expr._call(df)) null_mask = [s for _expr in parsed_exprs for s in _expr.is_null()._call(df)] if not ignore_nulls: