Skip to content

Commit 4d3e8cf

Browse files
author
mdeboc
committed
DOC: update the pandas.DataFrame.apply docstring
1 parent 0105edb commit 4d3e8cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4858,15 +4858,15 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48584858
If you are just applying a NumPy reduction function this will
48594859
achieve much better performance.
48604860
reduce : bool or `None`, default `None`
4861-
Try to apply reduction procedures. If the `DataFrame` is empty,
4861+
Try to apply reduction procedures. If the DataFrame is empty,
48624862
:meth:`apply` will use `reduce` to determine whether the result
4863-
should be a Series or a `DataFrame`. If ``reduce is None`` (the
4863+
should be a Series or a DataFrame. If ``reduce is None`` (the
48644864
default), :meth:`apply`'s return value will be guessed by calling
48654865
`func` on an empty Series
48664866
(note: while guessing, exceptions raised by `func` will be
48674867
ignored).
48684868
If ``reduce is True`` a Series will always be returned, and if
4869-
``reduce is False`` a `DataFrame` will always be returned.
4869+
``reduce is False`` a DataFrame will always be returned.
48704870
48714871
.. deprecated:: 0.23.0.
48724872
This argument will be removed in a future version, replaced
@@ -4879,7 +4879,7 @@ def apply(self, func, axis=0, broadcast=None, raw=False, reduce=None,
48794879
* 'reduce' : returns a Series if possible rather than expanding
48804880
list-like results. This is the opposite of 'expand'.
48814881
* 'broadcast' : results will be broadcast to the original shape
4882-
of the `DataFrame`, the original index and columns will be
4882+
of the DataFrame, the original index and columns will be
48834883
retained.
48844884
48854885
The default behaviour (`None`) depends on the return value of the

0 commit comments

Comments
 (0)