Skip to content

Commit e72df80

Browse files
committed
BUG-23224 Fix PR 23237
1 parent ff55b32 commit e72df80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/integer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def coerce_to_array(values, dtype, mask=None, copy=False):
173173
values = np.array(values, copy=copy)
174174
if is_object_dtype(values):
175175
inferred_type = lib.infer_dtype(values)
176-
if inferred_type is 'mixed' and isna(values).any():
176+
if inferred_type is 'mixed' and isna(values).all():
177177
values = np.empty(len(values))
178178
values.fill(np.nan)
179179
elif inferred_type not in ['floating', 'integer',

0 commit comments

Comments
 (0)