Skip to content

Commit 6526e93

Browse files
authored
CI maybe fix arm test (#49476)
* maybe fix arm test * add comment linking to issue Co-authored-by: MarcoGorelli <>
1 parent 9820edc commit 6526e93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/arrays/datetimes.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -2231,8 +2231,10 @@ def maybe_convert_dtype(data, copy: bool, tz: tzinfo | None = None):
22312231

22322232
if is_float_dtype(data.dtype):
22332233
# pre-2.0 we treated these as wall-times, inconsistent with ints
2234-
# GH#23675, GH#45573 deprecated to treat symmetrically with integer dtypes
2235-
data = data.astype(np.int64)
2234+
# GH#23675, GH#45573 deprecated to treat symmetrically with integer dtypes.
2235+
# Note: data.astype(np.int64) fails ARM tests, see
2236+
# https://github.com/pandas-dev/pandas/issues/49468.
2237+
data = data.astype("M8[ns]").view("i8")
22362238
copy = False
22372239

22382240
elif is_timedelta64_dtype(data.dtype) or is_bool_dtype(data.dtype):

0 commit comments

Comments
 (0)