We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06d498b commit 6a0f6c2Copy full SHA for 6a0f6c2
pandas/core/apply.py
@@ -1094,8 +1094,9 @@ def apply_standard(self) -> DataFrame | Series:
1094
1095
if len(mapped) and isinstance(mapped[0], ABCSeries):
1096
warnings.warn(
1097
- "converting list of Series to a DataFrame in the Series.apply method "
1098
- "is deprecated and will be removed in a future version.",
+ "Returning a DataFrame from Series.apply when the supplied function"
+ "returns a Series is deprecated and will be removed in a future "
1099
+ "version.",
1100
FutureWarning,
1101
stacklevel=find_stack_level(),
1102
) # GH52116
0 commit comments