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):