-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: operator wrapper names do not match math operators #53724
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
Thoughts @MarcoGorelli ? If the suggestion is accepted, I can take it up. |
not sure I understand the feature request, but feel free to open a PR if you understand and think it would add value |
take |
@mk0417 - can you give this issue a more informative title? Currently it is |
I think my PR fixes what OP is requesting. Also @mk0417 can you please update the title of this issue? |
Hi @rhshadrach and @rsm-23, thank you and I have updated the issue title |
Uh oh!
There was an error while loading. Please reload this page.
Pandas version checks
main
hereLocation of the documentation
https://github.com/pandas-dev/pandas/blob/v2.0.2/pandas/core/ops/docstrings.py
Documentation problem
Among flexible wrappers (
add
,sub
,mul
,div
,mod
,pow
) toarithmetic operators:
+
,-
,*
,/
,//
,%
,**
.There are 6 wrapper names, but there are 7 operators
Suggested fix for documentation
It is better to add
floordiv
afterdiv
so that the names can match the operators in orderAmong flexible wrappers (`add`, `sub`, `mul`, `div`, `floordiv`,`mod`, `pow`) to arithmetic operators: `+`, `-`, `*`, `/`, `//`, `%`, `**`.
The text was updated successfully, but these errors were encountered: