We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26cb7a commit 880d51fCopy full SHA for 880d51f
pandas/core/dtypes/cast.py
@@ -427,9 +427,7 @@ def maybe_upcast_numeric_to_64bit(arr: NumpyIndexT) -> NumpyIndexT:
427
ndarray or ExtensionArray
428
"""
429
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:
+ if is_signed_integer_dtype(dtype) and dtype != np.int64:
433
return arr.astype(np.int64)
434
elif is_unsigned_integer_dtype(dtype) and dtype != np.uint64:
435
return arr.astype(np.uint64)
0 commit comments