From 0f142334449f62642dbef8ed1a0361ba381b7f95 Mon Sep 17 00:00:00 2001 From: Will Ayd Date: Thu, 14 Nov 2024 14:59:51 -0500 Subject: [PATCH] Fix backport issue --- pandas/core/dtypes/cast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/dtypes/cast.py b/pandas/core/dtypes/cast.py index 0039d15b084bb..da27f650679d5 100644 --- a/pandas/core/dtypes/cast.py +++ b/pandas/core/dtypes/cast.py @@ -1202,7 +1202,7 @@ def maybe_infer_to_datetimelike( convert_numeric=False, convert_non_numeric=True, convert_to_nullable_dtype=convert_to_nullable_dtype, - dtype_if_all_nat=np.dtype("M8[s]"), + dtype_if_all_nat=np.dtype("M8[ns]"), )