Skip to content
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

DOC: fix DataFrame.nlargest and DataFrame.nsmallest doctests #23202

Merged

Conversation

Moisan
Copy link
Contributor

@Moisan Moisan commented Oct 17, 2018

  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff

Based on #22459. Fix the docstring for DataFrame.nlargest and DataFrame.nsmallest (since they are quite similar). I also updated ci/code_check.sh I extended the existing doctest of Series.nlargest and Series.nsmallest.

@pep8speaks
Copy link

Hello @Moisan! Thanks for submitting the PR.

@jschendel jschendel added the Docs label Oct 21, 2018
@codecov
Copy link

codecov bot commented Oct 29, 2018

Codecov Report

Merging #23202 into master will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #23202      +/-   ##
==========================================
+ Coverage   92.18%   92.23%   +0.04%     
==========================================
  Files         161      161              
  Lines       51184    51197      +13     
==========================================
+ Hits        47185    47220      +35     
+ Misses       3999     3977      -22
Flag Coverage Δ
#multiple 90.61% <ø> (-0.01%) ⬇️
#single 42.27% <ø> (+0.04%) ⬆️
Impacted Files Coverage Δ
pandas/core/frame.py 97.03% <ø> (ø) ⬆️
pandas/core/arrays/timedeltas.py 93.75% <0%> (-0.56%) ⬇️
pandas/util/testing.py 86.64% <0%> (-0.2%) ⬇️
pandas/core/indexes/base.py 96.46% <0%> (-0.16%) ⬇️
pandas/tseries/offsets.py 97.22% <0%> (-0.15%) ⬇️
pandas/core/computation/expr.py 88.57% <0%> (-0.09%) ⬇️
pandas/core/computation/scope.py 93.06% <0%> (-0.07%) ⬇️
pandas/core/reshape/melt.py 97.32% <0%> (-0.03%) ⬇️
pandas/core/indexes/datetimes.py 96.41% <0%> (-0.03%) ⬇️
pandas/core/indexes/datetimelike.py 98.01% <0%> (-0.01%) ⬇️
... and 40 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e5994...4d30026. Read the comment docs.

@jreback jreback added this to the 0.24.0 milestone Oct 30, 2018
@jreback
Copy link
Contributor

jreback commented Oct 30, 2018

lgtm. @jschendel @datapythonista pls merge if ok with you.

Copy link
Member

@jschendel jschendel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm; will wait a bit for @datapythonista to review prior to merging

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just a typo and we can merge

pandas/core/frame.py Outdated Show resolved Hide resolved
Co-Authored-By: Moisan <thierry.moisan@gmail.com>
Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merging on green. Thanks @Moisan

@datapythonista datapythonista merged commit 64c3491 into pandas-dev:master Nov 5, 2018
thoo added a commit to thoo/pandas that referenced this pull request Nov 5, 2018
…fixed

* upstream/master:
  Run Isort on tests-> util,sereis,arrays (pandas-dev#23501)
  DOC: Fix syntax error in groupby docs (pandas-dev#23498)
  DOC: Fix DataFrame.nlargest and DataFrame.nsmallest doctests (pandas-dev#23202)
  DOC: Remove dead link and update links to https (pandas-dev#23476)
@Moisan Moisan deleted the doctests_df_nlargest_nsmallest branch November 5, 2018 21:16
JustinZhengBC pushed a commit to JustinZhengBC/pandas that referenced this pull request Nov 14, 2018
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Pingviinituutti pushed a commit to Pingviinituutti/pandas that referenced this pull request Feb 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants