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: Update pandas.core.groupby.GroupBy.pipe docstring #32352

Closed
wants to merge 6 commits into from

Conversation

hsjsjsj009
Copy link

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

looks good! a few edits

Use `.pipe` when you want to improve readability by chaining together
functions that expect Series, DataFrames, GroupBy or Resampler objects.
Instead of writing
Use `.pipe` when you want to improve readability.
Copy link
Member

Choose a reason for hiding this comment

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

Can you revert the changes to this paragraph?

func : callable or tuple of (callable, string)
Function to apply to this %(klass)s object or, alternatively,
func : callable or tuple of (callable, str)
Function to apply to this %(klass)s object or, alternatiy,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Function to apply to this %(klass)s object or, alternatiy,
Function to apply to this %(klass)s object or

@datapythonista
Copy link
Member

@hsjsjsj009 do you have time to address the comments? Would be great to get this merged.

@hsjsjsj009
Copy link
Author

hsjsjsj009 commented Mar 7, 2020 via email

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.

Looks good, just a small thing.


%(versionadded)s

Use `.pipe` when you want to improve readability by chaining together
functions that expect Series, DataFrames, GroupBy or Resampler objects.
Instead of writing
functions expect Series, DataFrames, GroupBy or Resampler objects.
Copy link
Member

Choose a reason for hiding this comment

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

can you restore that

Copy link
Author

Choose a reason for hiding this comment

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

okay

@hsjsjsj009 hsjsjsj009 closed this Mar 7, 2020
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.

4 participants