Skip to content

Commit 59fcd33

Browse files
committed
add deprecation message to Series.apply II
1 parent e00115d commit 59fcd33

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/core/series.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4394,14 +4394,13 @@ def apply(
43944394
"""
43954395
Invoke function on values of Series.
43964396
4397-
Can be ufunc (a NumPy function that applies to the entire Series)
4398-
or a Python function that only works on single values.
4399-
44004397
.. deprecated:: 2.1.0
44014398
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.
4399+
If the result from ``func`` is a ``Series``, wrapping the output in a
4400+
``DataFrame`` instead of a ``Series`` has been deprecated.
4401+
4402+
Can be ufunc (a NumPy function that applies to the entire Series)
4403+
or a Python function that only works on single values.
44054404
44064405
Parameters
44074406
----------

0 commit comments

Comments
 (0)