Skip to content

Commit e00115d

Browse files
committed
add deprecation message to Series.apply
1 parent c90bc2a commit e00115d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/series.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4397,6 +4397,12 @@ def apply(
43974397
Can be ufunc (a NumPy function that applies to the entire Series)
43984398
or a Python function that only works on single values.
43994399
4400+
.. deprecated:: 2.1.0
4401+
4402+
If the output from ``func`` is a listlike of ``Series`` the output,
4403+
wrapping the output in a ``DataFrame`` instead of a ``Series`` has been
4404+
deprecated.
4405+
44004406
Parameters
44014407
----------
44024408
func : function

0 commit comments

Comments
 (0)