From 67a3f3e0cbc3344b48a6407d4113c1c075a9e22d Mon Sep 17 00:00:00 2001 From: Rajat Jain Date: Sun, 26 May 2024 14:28:57 +0530 Subject: [PATCH] _may_promote hotfix. --- pandas/core/dtypes/cast.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 08adb580ff08f..1c01ffcb93284 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -625,7 +625,6 @@ def _maybe_promote(dtype: np.dtype, fill_value=np.nan): return dtype, fill_value if is_valid_na_for_dtype(fill_value, dtype) and dtype.kind in "iufcmM": - dtype = ensure_dtype_can_hold_na(dtype) fv = na_value_for_dtype(dtype) return dtype, fv