Skip to content

Commit bddfffa

Browse files
committed
ENH: return dtype on invalid function in where is now float64
1 parent c6b9f19 commit bddfffa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/internals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ def func(c,v,o):
496496
% repr(o))
497497
else:
498498
# return the values
499-
result = np.empty(v.shape,dtype='O')
499+
result = np.empty(v.shape,dtype='float64')
500500
result.fill(np.nan)
501501
return result
502502

0 commit comments

Comments
 (0)