Skip to content

ENH: classmethods for pd.period_range & pd.date_range #12984

Closed
@max-sixty

Description

@max-sixty

Floating an idea: pd.PeriodIndex.from_range & pd.DatetimeIndex.from_range as classmethods to mirror pd.period_range & pd.date_range respectively. This encapsulates constructors on the class.

Also could have pd.DatetimeIndex.from_dataframe for #12967

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions