Skip to content

Commit 06d498b

Browse files
committed
add deprecation message to Series.apply II
1 parent 21811d0 commit 06d498b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pandas/core/series.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -4412,14 +4412,13 @@ def apply(
44124412
"""
44134413
Invoke function on values of Series.
44144414
4415-
Can be ufunc (a NumPy function that applies to the entire Series)
4416-
or a Python function that only works on single values.
4417-
44184415
.. deprecated:: 2.1.0
44194416
4420-
If the output from ``func`` is a listlike of ``Series`` the output,
4421-
wrapping the output in a ``DataFrame`` instead of a ``Series`` has been
4422-
deprecated.
4417+
If the result from ``func`` is a ``Series``, wrapping the output in a
4418+
``DataFrame`` instead of a ``Series`` has been deprecated.
4419+
4420+
Can be ufunc (a NumPy function that applies to the entire Series)
4421+
or a Python function that only works on single values.
44234422
44244423
Parameters
44254424
----------

0 commit comments

Comments
 (0)