Skip to content

BUG: IntervalArray.__setitem__ creates copies incorrectly #27147

Closed
@jbrockmendel

Description

@jbrockmendel
from pandas.core.arrays import IntervalArray
import numpy as np
arr = np.random.randn(10)
a = IntervalArray.from_arrays(arr, arr+1)
b = a[:5]

b[0] = b[1]
assert a[0] == a[1]  # <-fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions