Skip to content

Reconcile Series.index and DataFrame.index #1336

@Dr-Irv

Description

@Dr-Irv
  • Series.index
    • def index(self) -> Index | MultiIndex: ...
  • DataFrame.index
    • def index(self) -> UnknownIndex: ...

These are inconsistent. I think they should both read def index(self) -> Index: ...

I think this change will allow UnknownIndex to be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    IndexRelated to the Index class or subclasses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions