Skip to content

Commit 67a3f3e

Browse files
author
Rajat Jain
committed
_may_promote hotfix.
1 parent 34177d6 commit 67a3f3e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pandas/core/dtypes/cast.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,6 @@ def _maybe_promote(dtype: np.dtype, fill_value=np.nan):
625625
return dtype, fill_value
626626

627627
if is_valid_na_for_dtype(fill_value, dtype) and dtype.kind in "iufcmM":
628-
dtype = ensure_dtype_can_hold_na(dtype)
629628
fv = na_value_for_dtype(dtype)
630629
return dtype, fv
631630

0 commit comments

Comments
 (0)