-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: Improve code example for DataFrame.join #44735
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: Improve code example for DataFrame.join #44735
Conversation
The modified code example does not have unique values in the 'key' column in the calling DataFrame `df`. With unique keys the special behavior of `join` has not been highlighted, since it just added a new column. With the modified values the example shows that the 'key' column is really used as key.
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.
Could you keep the original example and add a new one instead?
OK, should I add it for all calls or just with the last and maybe most interesting call, i. e. |
I think the last one is enough |
This adds back the original example and adds the new example as an additional one.
Hello @ChristofKaufmann! 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-12-04 00:58:08 UTC |
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.
lgtm
thanks @ChristofKaufmann |
Thank you! |
The modified code example does not have unique values in the 'key' column in the calling DataFrame
df
. With unique keys the special behavior ofjoin
has not been highlighted, since it just added a new column. With the modified values the example shows that the 'key' column is really used as key.