Skip to content

ERR: disallow RangeIndex() #13793

Closed
Closed
@jreback

Description

@jreback

xref #13749

this is not consistent with other Indexes where we don't allow them to be constructed with no data passed (it can be None), but that's the idea. start must be not-None.

IOW this should raise ValueError

In [3]: pd.RangeIndex()
Out[3]: RangeIndex(start=0, stop=0, step=1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    API DesignError ReportingIncorrect or improved errors from pandasIndexingRelated to indexing on series/frames, not to indexes themselves

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions