Skip to content

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

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

rsm-23
Copy link
Contributor

@rsm-23 rsm-23 commented Sep 10, 2023

@rsm-23 rsm-23 changed the title Updated warn msg Updated future warning msg in transform() for Series.groupby Sep 10, 2023
@RyanBerger98
Copy link

Simple change to make the warning message a lot more clear, thank you!

@rsm-23
Copy link
Contributor Author

rsm-23 commented Sep 11, 2023

@rhshadrach can you please review this?

@@ -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}"`'
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated @mroeschke

@mroeschke mroeschke added the Error Reporting Incorrect or improved errors from pandas label Sep 11, 2023
@rsm-23 rsm-23 requested a review from mroeschke September 11, 2023 16:45
@mroeschke mroeschke added this to the 2.1.1 milestone Sep 11, 2023
@mroeschke mroeschke merged commit 417a5e7 into pandas-dev:main Sep 11, 2023
@mroeschke
Copy link
Member

Thanks @rsm-23

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 11, 2023
mroeschke pushed a commit that referenced this pull request Sep 11, 2023
…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]>
@rsm-23 rsm-23 deleted the warning-update branch September 12, 2023 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Update FutureWarning message to be more clear
3 participants