We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59fcd33 commit a55f9c3Copy full SHA for a55f9c3
pandas/core/apply.py
@@ -1088,8 +1088,9 @@ def apply_standard(self) -> DataFrame | Series:
1088
1089
if len(mapped) and isinstance(mapped[0], ABCSeries):
1090
warnings.warn(
1091
- "converting list of Series to a DataFrame in the Series.apply method "
1092
- "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 "
1093
+ "version.",
1094
FutureWarning,
1095
stacklevel=find_stack_level(),
1096
) # GH52116
0 commit comments