We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0525509 commit a7604c9Copy full SHA for a7604c9
pandas/core/dtypes/dtypes.py
@@ -2289,7 +2289,8 @@ def numpy_dtype(self) -> np.dtype:
2289
np_dtype = self.pyarrow_dtype.to_pandas_dtype()
2290
2291
if isinstance(np_dtype, object):
2292
- if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, pd.IntervalIndex):
+ from pandas.core.indexes.interval import IntervalIndex
2293
+ if hasattr(np_dtype, "categories") and isinstance(np_dtype.categories, IntervalIndex):
2294
return np.dtype(object)
2295
2296
if isinstance(np_dtype, DatetimeTZDtype):
0 commit comments