Skip to content

Commit a7604c9

Browse files
committed
fixing macos13 platofrm issue
1 parent 0525509 commit a7604c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/dtypes/dtypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2289,7 +2289,8 @@ def numpy_dtype(self) -> np.dtype:
22892289
np_dtype = self.pyarrow_dtype.to_pandas_dtype()
22902290

22912291
if isinstance(np_dtype, object):
2292-
if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, pd.IntervalIndex):
2292+
from pandas.core.indexes.interval import IntervalIndex
2293+
if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, IntervalIndex):
22932294
return np.dtype(object)
22942295

22952296
if isinstance(np_dtype, DatetimeTZDtype):

0 commit comments

Comments
 (0)