-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: index described as a "set" but permits duplicates -- change to multiset or list? #36170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks @notestaff, this does seem like an odd description. "Immutable ndarray implementing an ordered, sliceable set.", but it's neither an ndarray, ordered, or a set. A PR to update the docs would be helpful. |
I'm willing to take this. |
i would be glad to make my first contribution here |
take |
There's no indexing.html present in my clone... However, I found \pandas\doc\source\reference\indexing.rst but |
@Nikhil1O1 It looks like the docs you'd want to update are in two places (this description is used for a few different classes): |
Done, If there's anything else I can do... Do let me know. |
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?
The text was updated successfully, but these errors were encountered: