Skip to content

Commit f98d950

Browse files
Backport PR #55082 on branch 2.1.x (Updated future warning msg in transform() for Series.groupby) (#55097)
Backport PR #55082: Updated future warning msg in transform() for Series.groupby Co-authored-by: Rajat Subhra Mukherjee <[email protected]>
1 parent dac2a06 commit f98d950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/apply.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1830,12 +1830,12 @@ def warn_alias_replacement(
18301830
full_alias = alias
18311831
else:
18321832
full_alias = f"{type(obj).__name__}.{alias}"
1833-
alias = f"'{alias}'"
1833+
alias = f'"{alias}"'
18341834
warnings.warn(
18351835
f"The provided callable {func} is currently using "
18361836
f"{full_alias}. In a future version of pandas, "
18371837
f"the provided callable will be used directly. To keep current "
1838-
f"behavior pass {alias} instead.",
1838+
f"behavior pass the string {alias} instead.",
18391839
category=FutureWarning,
18401840
stacklevel=find_stack_level(),
18411841
)

0 commit comments

Comments
 (0)