Skip to content

BUG: can create IntervalDtype[float32] but not IntervalArray[float32] #45412

Open
@jbrockmendel

Description

@jbrockmendel
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDtype ConversionsUnexpected or buggy dtype conversionsIntervalInterval data typeRegressionFunctionality that used to work in a prior pandas version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions