Skip to content

Commit

Permalink
fixing macos13 platofrm issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Koookadooo committed Dec 9, 2024
1 parent 0525509 commit a7604c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/core/dtypes/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a7604c9

Please sign in to comment.