Skip to content

Commit

Permalink
misc: remove unneeded assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
aivanoved committed Aug 16, 2024
1 parent ee835c2 commit 08e689a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhals/_pandas_like/namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ def _when_then_value_arg_process(
return value
elif isinstance(value, PandasLikeSeries):
return plx._create_expr_from_series(value)
elif (np := get_numpy()) is not None and isinstance(value, np.ndarray):
elif np is not None and isinstance(value, np.ndarray):
return plx._create_expr_from_series(plx._create_compliant_series(value))
else:
return plx._create_expr_from_series(
Expand Down

0 comments on commit 08e689a

Please sign in to comment.