-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: improve binary operator docs (fixes #10093) #10107
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
Conversation
The resulting text would now be: I think that maybe also the 'binary operator' part can be confusing for people. I don't know if this terminology is that familiar for most users? |
actually the current implementation is such that the doc would be: |
Ah, yes, I see the |
hmm... yeah the wording for this is kind of tricky |
if we go with |
Proposal:
But agree that the "series and other" is maybe better as "other from series", but that will depend a bit from operator to operator how to best specify it. Can you maybe also add a 'see also' section each time to the reversed/non-reversed version (add -> radd, radd -> add, ...) |
So I ended up restructuring the code quite a bit in order to pack more information into the docstring, also added a unit test for it. Please take a look. Basically the docstrings look like this now:
|
Nice! Thanks a lot. |
Noticed a small problem, instead of: it's fixed now |
Travis is failing, but seems to be related to another issue |
yep will be fixed by #10152 |
OK, merging then. @mortada Thanks a lot! |
DOC: improve binary operator docs (fixes #10093)
fixes #10093
@jorisvandenbossche this covers
Series
,DataFrame
andPanel
, please take a look