We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c0f415 commit ae7f613Copy full SHA for ae7f613
metalearners/_narwhals_utils.py
@@ -29,7 +29,7 @@ def nw_to_dummies(
29
if set(categories) < set(x.unique()):
30
raise ValueError("We observed a value which isn't part of the categories.")
31
32
- if any(x.is_null()):
+ if x.is_null().any():
33
raise ValueError(
34
"Can only apply nw_to_dummies on a narwhals Series without null values."
35
)
0 commit comments