From a7604c977820590b869b4946a3fd6335c4579e85 Mon Sep 17 00:00:00 2001 From: Koookadooo Date: Sun, 8 Dec 2024 22:22:29 -0800 Subject: [PATCH] fixing macos13 platofrm issue --- pandas/core/dtypes/dtypes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/core/dtypes/dtypes.py b/pandas/core/dtypes/dtypes.py index 7f246ec1b519a..be1b3fc42133a 100644 --- a/pandas/core/dtypes/dtypes.py +++ b/pandas/core/dtypes/dtypes.py @@ -2289,7 +2289,8 @@ def numpy_dtype(self) -> np.dtype: np_dtype = self.pyarrow_dtype.to_pandas_dtype() if isinstance(np_dtype, object): - if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, pd.IntervalIndex): + from pandas.core.indexes.interval import IntervalIndex + if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, IntervalIndex): return np.dtype(object) if isinstance(np_dtype, DatetimeTZDtype):