Skip to content

DOC: update shared_docs to clarify groupby with lists #44569

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 3 commits into from
Nov 25, 2021

Conversation

arushi-08
Copy link
Contributor

Following @rhshadrach 's and @asishm 's suggestion, this PR modifies groupby docstring.

@pep8speaks
Copy link

pep8speaks commented Nov 22, 2021

Hello @arushi-08! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-11-24 05:22:52 UTC

aligned; see ``.align()`` method). If an ndarray is passed, the
aligned; see ``.align()`` method). If a list (of acceptable items.
See the `groupby user guide
<https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html#splitting-an-object-into-groups>`)
Copy link
Member

Choose a reason for hiding this comment

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

Could you move See the `groupby user guide <https://pandas.pydata.org/pandas-docs/stable/user_guide/groupby.html#splitting-an-object-into-groups>`) after passed? Not sure if we need the acceptable items part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the input. I have updated doc string.

@jreback jreback added this to the 1.4 milestone Nov 25, 2021
@jreback jreback merged commit 7ca5a6b into pandas-dev:master Nov 25, 2021
@jreback
Copy link
Contributor

jreback commented Nov 25, 2021

thanks @arushi-08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: Clarify docs for groupby when passed a list with length equal to length of axis
4 participants