Skip to content

DOC: index described as a "set" but permits duplicates -- change to multiset or list? #36170

Closed
@notestaff

Description

@notestaff

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/reference/indexing.html

Documentation problem

Index is described as a "set", but behaves as a multiset: len() counts each occurrent of a duplicate element separately.

Also, Index is described as an "ordered set", but that term connotes a set with an order relation on the values of its elements.

Suggested fix for documentation

An index seems more like an immutable ordered list; maybe, describe it as that?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions