Skip to content

Commit 880d51f

Browse files
committed
don't short-circuit
1 parent d26cb7a commit 880d51f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/dtypes/cast.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -427,9 +427,7 @@ def maybe_upcast_numeric_to_64bit(arr: NumpyIndexT) -> NumpyIndexT:
427427
ndarray or ExtensionArray
428428
"""
429429
dtype = arr.dtype
430-
if not np.issubclass_(dtype.type, np.number):
431-
return arr
432-
elif is_signed_integer_dtype(dtype) and dtype != np.int64:
430+
if is_signed_integer_dtype(dtype) and dtype != np.int64:
433431
return arr.astype(np.int64)
434432
elif is_unsigned_integer_dtype(dtype) and dtype != np.uint64:
435433
return arr.astype(np.uint64)

0 commit comments

Comments
 (0)