Skip to content

API: copy np.ndarray inputs to Index subclass constructors by default #63388

@mroeschke

Description

@mroeschke

As a follow up to #63370, Index subclasses should have their copy argument changed to copy: bool | None = None to copy np.ndarray and ExtensionArray inputs if copy=None is passed to mirror the Series constructor behavior. DatetimeIndex, TimedeltaIndex, PeriodIndex and IntervalIndex are the relevant subclasses to change.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions