Skip to content

DOC: Apply doc sprint #20111

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

Closed
wants to merge 4 commits into from
Closed

Conversation

dtammaro
Copy link

@dtammaro dtammaro commented Mar 10, 2018

Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):

  • PR title is "DOC: update the docstring"
  • The validation script passes: scripts/validate_docstrings.py <your-function-or-method>
  • The PEP8 style check passes: git diff upstream/master -u -- "*.py" | flake8 --diff
  • The html version looks good: python doc/make.py --single <your-function-or-method>
  • It has been proofread on language by another sprint participant

Please include the output of the validation script below between the "```" ticks:

# paste output of "scripts/validate_docstrings.py <your-function-or-method>" here
# between the "```" (remove this comment, but keep the "```")

If the validation script still gives errors, but you think there is a good reason
to deviate in this case (and there are certainly such cases), please state this
explicitly.

Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@datapythonista
Copy link
Member

@dtammaro Can you please udpate the title of the pull request, and copy the output of the script in the specified section? it's difficult to review otherwise

axis : {0 or 'index', 1 or 'columns'}, default 0
Axis along which the function is applied
Copy link
Contributor

Choose a reason for hiding this comment

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

This line can have end with a period.

@@ -4818,7 +4818,8 @@ def aggregate(self, func, axis=0, *args, **kwargs):

def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
result_type=None, args=(), **kwds):
"""Applies function along an axis of the DataFrame.
"""
Apply function along an axis of the DataFrame.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe "Apply a function along an axis of the DataFrame." (add "a" before "function").

* 0 or 'index': apply function to each column
* 1 or 'columns': apply function to each row
* 1 or 'columns': apply function to each row.
Copy link
Contributor

Choose a reason for hiding this comment

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

These bullets should both have periods, or not. I don't really have a preference, but probably best to add a period to both.

Additional keyword arguments will be passed as keywords to the function
array/series.

kwds : dictionary
Copy link
Contributor

Choose a reason for hiding this comment

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

@jorisvandenbossche remind me, what's the policy here? Just kwargs, with no type?

Copy link
Contributor

Choose a reason for hiding this comment

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

Though probably just kwds in this case.

Copy link
Member

Choose a reason for hiding this comment

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

**kwargs with no type

@jreback jreback changed the title Apply doc sprint DOC: Apply doc sprint Mar 10, 2018
@jreback jreback added the Docs label Mar 10, 2018
@jreback
Copy link
Contributor

jreback commented Mar 10, 2018

@datapythonista this doc-string prob needs another look, it is pretty long and complex so might be some more changes.

@jreback jreback added the Reshaping Concat, Merge/Join, Stack/Unstack, Explode label Mar 10, 2018
@jorisvandenbossche
Copy link
Member

This has been merged in #20202

@jorisvandenbossche jorisvandenbossche modified the milestones: 0.23.0, No action Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Docs Reshaping Concat, Merge/Join, Stack/Unstack, Explode
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants