Skip to content

Commit a5d678f

Browse files
committed
fixup! Add case_when API * Used to support conditional assignment operation.
1 parent f2bf4d8 commit a5d678f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/case_when.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ def case_when(obj: pd.DataFrame | pd.Series, *args, default: Any) -> pd.Series:
174174
# keeping track of which row got modified
175175
modified |= conditions
176176

177-
return series
177+
return series.convert_dtypes()

0 commit comments

Comments
 (0)