Skip to content

Commit a3a176e

Browse files
committed
BUG: Change form _can_hold_na to _can_hold_element for supporting non NA fill value
1 parent ab59ad4 commit a3a176e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ def func(cond, values, other):
14421442
transpose=transpose)
14431443
return self._maybe_downcast(blocks, 'infer')
14441444

1445-
if self._can_hold_na or self.ndim == 1:
1445+
if self._can_hold_element(fill_value) or self.ndim == 1:
14461446

14471447
if transpose:
14481448
result = result.T

0 commit comments

Comments
 (0)