-
-
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-
8000
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
Slight indentation fixes
- Loading branch information
commit eaaee0dcddee58a372753e9132d199513986c8f4
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -727,7 +727,7 @@ def _get_op_name(op, special): | |
-------- | ||
>>> df = pd.DataFrame({{'cost': [250, 150, 100], | ||
... 'revenue': [100, 250, 300]}}, | ||
... index=['A', 'B', 'C']) | ||
... index=['A', 'B', 'C']) | ||
>>> df | ||
cost revenue | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we turn on doc-tests for this? |
||
A 250 100 | ||
|
@@ -780,7 +780,7 @@ def _get_op_name(op, special): | |
Compare to a DataFrame of different shape. | ||
|
||
>>> other = pd.DataFrame({{'revenue': [300, 250, 100, 150]}}, | ||
... index=['A', 'B', 'C', 'D']) | ||
... index=['A', 'B', 'C', 'D']) | ||
>>> other | ||
revenue | ||
A 300 | ||
|
@@ -799,8 +799,8 @@ def _get_op_name(op, special): | |
|
||
>>> df_multindex = pd.DataFrame({{'cost': [250, 150, 100, 150, 300, 220], | ||
... 'revenue': [100, 250, 300, 200, 175, 225]}}, | ||
... index=[['Q1', 'Q1', 'Q1', 'Q2', 'Q2', 'Q2'], | ||
... ['A', 'B', 'C', 'A', 'B' ,'C']]) | ||
... index=[['Q1', 'Q1', 'Q1', 'Q2', 'Q2', 'Q2'], | ||
... ['A', 'B', 'C', 'A', 'B' ,'C']]) | ||
>>> df_multindex | ||
cost revenue | ||
Q1 A 250 100 | ||
|
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.
Uh oh!
There was an error while loading. Please reload this page.