Skip to content

Commit 7edf076

Browse files
committed
initial fix
1 parent e3e198f commit 7edf076

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/cast.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ def np_find_common_type(*dtypes: np.dtype) -> np.dtype:
14101410
"""
14111411
try:
14121412
common_dtype = np.result_type(*dtypes)
1413-
if common_dtype.kind in "mMSU":
1413+
if common_dtype.kind in "mMSU" or common_dtype not in dtypes:
14141414
# NumPy promotion currently (1.25) misbehaves for for times and strings,
14151415
# so fall back to object (find_common_dtype did unless there
14161416
# was only one dtype)

0 commit comments

Comments
 (0)