-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
Open
Labels
DocsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
No current documentation.
Documentation problem
Today I was searching for documentation on what the ~ operator does in pandas. I was astounded to not find a page for Series.__invert__()
or a documentation page about all operators. The only thing I could find was a sentence at the start of this https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#boolean-indexing and a few mentions in some release notes (e.g. https://pandas.pydata.org/docs/dev/whatsnew/v2.0.0.html) which seems a bit obscure to me.
Suggested fix for documentation
- Add documentation for
Series.__invert__()
and possibly for other types. This seems important to me because in regular python the tilde operator means bitwise invert (https://docs.python.org/3/library/operator.html#operator.__invert__) and in pandas it is elementwise invert. So that should be properly documented. It is better than existing documentation because it is easier to find when one is specifically looking for this information. - An overview page over all operators would be nice but is not as urgent.
Metadata
Metadata
Assignees
Labels
DocsNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further action