-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
DOC: Updating operators docstrings #20415
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
acab08e
DOC: Add examples for DataFrame.gt() and DataFrame.ge()
ParfaitG 1818aeb
Merge branch 'master' of github.com:pandas-dev/pandas into docstring_gt
ParfaitG 86cfd56
Updated latest ops.py
ParfaitG b68b61f
Merge branch 'master' of github.com:pandas-dev/pandas into docstring_gt
ParfaitG 13fed5f
DOC: Add examples to docstring of DataFrame.ge() and .gt()
ParfaitG 8bdbc14
DOC: Add examples to docstring of DataFrame.ge() and .gt()
ParfaitG 4668c5f
DOC: Update ops.py to add docstring, parameters, and examples to comp…
ParfaitG e6eb9b9
DOC: Update ops.py for operator methods - cleaning up whitespace
ParfaitG db143c4
DOC: Update ops.py to extend docstrings for comparison methods
ParfaitG 33ff1e4
DOC: Create single, generalized docstring for comparison methods
ParfaitG e138d92
DOC: Examples and summary updates to comparison operators
ParfaitG 50e9d98
DOC: further update to parameters and examples for comparison methods
ParfaitG aa016fd
Merge remote-tracking branch 'upstream/master' into docstring_gt
ParfaitG c2cc037
DOC: Adjusted notes and examples for comparison methods
ParfaitG 644273b
DOC: Adjusted _flex_comp_doc_FRAME assignment logic
ParfaitG 240a502
DOC: Extended arithmetic operator docstring to resemble comparison op…
ParfaitG bbcdcbe
DOC: Updated df arithmetic operators, extended series arithmetic and …
ParfaitG a33f003
Revert "DOC: Updated df arithmetic operators, extended series arithme…
ParfaitG 70950c0
DOC: Update DataFrame arithmetic docstring
ParfaitG 6bcb9b9
DOC: Updated examples in arithmetic operators
ParfaitG e7da1e9
Merge remote-tracking branch 'upstream/master' into docstring_gt
ParfaitG 20cbec1
Merge remote-tracking branch 'upstream/master' into docstring_gt
ParfaitG 722ae81
Updated doctests with core/ops.py
ParfaitG 4580f7a
Resetting doctests and setup files
ParfaitG 49c7b82
Updated arithmetic doctring to use equiv variable
ParfaitG 1e4e450
Remove df_info.txt generated from doctests
ParfaitG ec71a04
Updated _gen_eval_kwargs docstring in ops.py to avoid pytest skip
ParfaitG 25129ff
Resolve doctest conflict and get latest upstream changes
ParfaitG d344688
Update docstrings to conform to PEP 8 syntax
ParfaitG eaaee0d
Slight indentation fixes
ParfaitG e777e87
DOC: merge with master, resolved conflicts
ParfaitG 6879e89
Merge remote-tracking branch 'upstream/master' into docstring_gt
ParfaitG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Updated latest ops.py
- Loading branch information
commit 86cfd5651f534070c455b9d84faa3f68fdcbc5b4
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You are viewing a condensed version of this merge commit. You can view the full changes here.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if I'm missing something, but is this always the same for all methods? It could go directly to the doctring and not in a separate variable if that's the case. Besides good docstrings, it's good if we keep the code as simple as possible. So we usually leave the same
See Also
for all methods in this case, even if the method being documented is self referencing.Also, do you think we can find something less verbose for the descriptions. Something like
Compare DataFrames for equality elementwise
may be?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Though much of the words are the same, they differ slightly in the middle. Are you advising removing descriptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, what I meant is that if it's possible, it'd be good that each of these descriptions is shorter. Just making them more concise if you find the way.