Skip to content

Commit

Permalink
Updated future warning msg in transform() for Series.groupby (#55082)
Browse files Browse the repository at this point in the history
* updated warn msg

* Update apply.py
  • Loading branch information
rsm-23 authored Sep 11, 2023
1 parent ce5fdf0 commit 417a5e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -1863,12 +1863,12 @@ def warn_alias_replacement(
full_alias = alias
else:
full_alias = f"{type(obj).__name__}.{alias}"
alias = f"'{alias}'"
alias = f'"{alias}"'
warnings.warn(
f"The provided callable {func} is currently using "
f"{full_alias}. In a future version of pandas, "
f"the provided callable will be used directly. To keep current "
f"behavior pass {alias} instead.",
f"behavior pass the string {alias} instead.",
category=FutureWarning,
stacklevel=find_stack_level(),
)

0 comments on commit 417a5e7

Please sign in to comment.