Skip to content

Commit 2e6764c

Browse files
committed
BUG: Remove special-casing for Python date objects in DatetimeIndex
1 parent 8f39dbc commit 2e6764c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import warnings
2020

2121
import numpy as np
22-
import pyarrow as pa
2322

2423
from pandas._config import (
2524
get_option,
@@ -6306,6 +6305,8 @@ def _is_comparable_dtype(self, dtype: DtypeObj) -> bool:
63066305
return is_numeric_dtype(dtype)
63076306
# GH#62158
63086307
elif isinstance(dtype, ArrowDtype):
6308+
import pyarrow as pa
6309+
63096310
if dtype.kind != "M":
63106311
return False
63116312
pa_dtype = dtype.pyarrow_dtype

0 commit comments

Comments
 (0)