Skip to content

Commit

Permalink
cast to str on native dask series
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Oct 4, 2024
1 parent c3e59d2 commit 51729c1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions narwhals/_dask/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 51729c1

Please sign in to comment.