-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Updated future warning msg in transform() for Series.groupby #55082
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
Conversation
Simple change to make the warning message a lot more clear, thank you! |
@rhshadrach can you please review this? |
pandas/core/apply.py
Outdated
@@ -1832,12 +1832,12 @@ def warn_alias_replacement( | |||
full_alias = alias | |||
else: | |||
full_alias = f"{type(obj).__name__}.{alias}" | |||
alias = f"'{alias}'" | |||
alias = f'`"{alias}"`' |
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.
Might be good to remove the `
s as they might not always render like markdown for example
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.
Updated @mroeschke
Thanks @rsm-23 |
…() for Series.groupby
…nsform() for Series.groupby) (#55097) Backport PR #55082: Updated future warning msg in transform() for Series.groupby Co-authored-by: Rajat Subhra Mukherjee <[email protected]>
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.