Skip to content

Commit ae7f613

Browse files
kkleinFBruzzesi
andauthored
Update metalearners/_narwhals_utils.py
Co-authored-by: Francesco Bruzzesi <[email protected]>
1 parent 0c0f415 commit ae7f613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metalearners/_narwhals_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def nw_to_dummies(
2929
if set(categories) < set(x.unique()):
3030
raise ValueError("We observed a value which isn't part of the categories.")
3131

32-
if any(x.is_null()):
32+
if x.is_null().any():
3333
raise ValueError(
3434
"Can only apply nw_to_dummies on a narwhals Series without null values."
3535
)

0 commit comments

Comments
 (0)