-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Added MultiIndex Example for Series Min #23338
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
# Conflicts: # pandas/core/generic.py
# Conflicts: # pandas/core/generic.py
Hello @vadakattu! Thanks for updating the PR. Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated on December 22, 2018 at 18:21 Hours UTC |
Codecov Report
@@ Coverage Diff @@
## master #23338 +/- ##
==========================================
+ Coverage 92.3% 92.3% +<.01%
==========================================
Files 162 162
Lines 51875 51879 +4
==========================================
+ Hits 47883 47888 +5
+ Misses 3992 3991 -1
Continue to review full report at Codecov.
|
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.
lgtm, but we should avoid repeating this for every stats method, I'd prefer a template than repeating these examples many times.
@vadakattu can you template this as @datapythonista suggests? |
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.
Unfortunately we need to keep compatibility for Python 2.7 and 3.5 for some time more, so we can't use f-strings yet.
Of course! ...that was very absent minded of me. Do you have any suggestions for a better way to do the templating? Otherwise I'll go ahead and switch it to old-style formatting. |
You can do the same, but without f-strings. If you need a reference, |
@vadakattu can you please merge master into your branch and push, and make sure the CI is green, so we can merge this. Thanks! |
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.
Added a comment, apply to all cases.
The idea was to change the variables to the new format too (e.g. |
Done. |
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.
Thanks @vadakattu, Looks good, couple of small things to make this standard with the rest of the docs.
Also, if you can run ./scripts/validate_docstrings.py pandas.Series.min
... and check that there is nothing wrong with the docstrings based on the script, that would be great.
I think this is modifying some the same things as #22554. @vadakattu @Roald87, can you coordinate and avoid duplicate work |
Have now restructured
|
@vadakattu can you fix the conflicts? we merged the PR that I mentioned it was touching same code as this one |
# Conflicts: # pandas/core/generic.py
# Conflicts: # pandas/core/generic.py
I believed I dealt with it last night -- the single circle ci failure seems unrelated.
|
Tests pass, and docstrings fully compliant per |
@datapythonista seems as if @vadakattu already made the full docs, so there's no point in merging my PR I guess? |
I didn't check in detail how much overlap exists in both PRs. But as pointed out in #23338 (comment), you should talk with @vadakattu and see if it makes sense to have all the changes in one and close the other, or what. |
@vadakattu what do you think? I'm fine with taking yours, I don't mine adds much. |
👍🏽 Sounds good. |
@vadakattu can you fix the conflicts please. Sorry for the delay. |
# Conflicts: # pandas/core/generic.py
# Conflicts: # pandas/core/generic.py
Conflicts resolved. |
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.
lgtm, thanks @vadakattu
Thanks @vadakattu |
Corollary to #23298
git diff upstream/master -u -- "*.py" | flake8 --diff