Skip to content

API: Which DatetimeIndex/TimedeltaIndex ops should infer frequency? #23216

Closed
@jbrockmendel

Description

@jbrockmendel

In DatetimeIndex/TimedeltaIndex arithmetic operations sometimes we return type(self)(values, freq="infer") and other times we return self._shallow_copy(values, freq=None). I don't see any clear logic guiding when to do which. Anyone else know?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions