Skip to content

Commit b24df58

Browse files
committed
BUG: Bug fix for implicit upcast to float64 for large series
1 parent 7863029 commit b24df58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/ops/array_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,7 @@ def maybe_prepare_scalar_for_op(obj, shape: Shape):
573573
return int(obj)
574574

575575
elif isinstance(obj, np.floating):
576-
return float(obj)
576+
return np.dtype(obj.dtype).type(obj)
577577

578578
return obj
579579

0 commit comments

Comments
 (0)