-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DOC: add two new examples to the transform docs #37912
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: add two new examples to the transform docs #37912
Conversation
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.
looks fine, there are some pre commit errors, can you merge master and ping on green
pandas/core/shared_docs.py
Outdated
@@ -324,4 +324,57 @@ | |||
0 0.000000 1.000000 | |||
1 1.000000 2.718282 | |||
2 1.414214 7.389056 | |||
|
|||
It is possible to call transform on a GroupBy object: |
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.
You can call transform on a GroupBy object.
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.
I have made the change.
4a52b9b
to
5c96a68
Compare
@jreback I have merged with master and now all checks pass. |
thanks @marktgraham |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
This PR adds two examples to the transform user guide. The examples apply the transform method to a groupby object. This is from the PyData Global sprint, from this issue. The examples are taken from here and here.