Skip to content

Commit bdc54f6

Browse files
samukwekuyuanx749
andauthored
Update pandas/core/series.py
Co-authored-by: Xiao Yuan <[email protected]>
1 parent 3da7cf2 commit bdc54f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5702,7 +5702,7 @@ def case_when(
57025702
f"The caselist argument should be a list; instead got {type(caselist)}"
57035703
)
57045704

5705-
if not len(caselist):
5705+
if not caselist:
57065706
raise ValueError(
57075707
"provide at least one boolean condition, "
57085708
"with a corresponding replacement."

0 commit comments

Comments
 (0)