Skip to content

Commit 417a5e7

Browse files
authored
Updated future warning msg in transform() for Series.groupby (#55082)
* updated warn msg * Update apply.py
1 parent ce5fdf0 commit 417a5e7

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
@@ -1863,12 +1863,12 @@ def warn_alias_replacement(
18631863
full_alias = alias
18641864
else:
18651865
full_alias = f"{type(obj).__name__}.{alias}"
1866-
alias = f"'{alias}'"
1866+
alias = f'"{alias}"'
18671867
warnings.warn(
18681868
f"The provided callable {func} is currently using "
18691869
f"{full_alias}. In a future version of pandas, "
18701870
f"the provided callable will be used directly. To keep current "
1871-
f"behavior pass {alias} instead.",
1871+
f"behavior pass the string {alias} instead.",
18721872
category=FutureWarning,
18731873
stacklevel=find_stack_level(),
18741874
)

0 commit comments

Comments
 (0)