Skip to content

Commit

Permalink
dask case
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Jan 14, 2025
1 parent 491db6a commit e344296
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_dask/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def __call__(self, df: DaskLazyFrame) -> Sequence[dx.Series]:

try:
value_series = parse_into_expr(self._then_value, namespace=plx)(df)[0]
if self._then_value._function_name == "lit":
if getattr(self._then_value, "_function_name", None) == "lit":
_df = condition.to_frame("a")
_df["tmp"] = value_series[0]
value_series = _df["tmp"]
Expand Down

0 comments on commit e344296

Please sign in to comment.