pandas: BUG: can create IntervalDtype[float32] but not IntervalArray[float32]
dtype = pd.core.dtypes.common.pandas_dtype("interval[float32, right]")
ii = pd.interval_range(1, 10)
>>> ii.astype(dtype).dtype
interval[float64, right]
Best guess is it is because we are going through Index constructor.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 16 (16 by maintainers)
Commits related to this issue
- code sample for #45412 — committed to simonjayhawkins/pandas by simonjayhawkins 2 years ago
This isn’t fixed yet (the 32bit dtype can still be created), but +1 to moving this from 2.0. This isn’t urgent in my view.