Skip to content

Commit d0a2103

Browse files
Merge pull request #11541 from mineo/apply-doc
DOC: Document the args of DataFrame.apply in the same order as in the signature
2 parents 8727182 + 262ce83 commit d0a2103

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/core/frame.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3882,6 +3882,11 @@ def apply(self, func, axis=0, broadcast=False, raw=False, reduce=None,
38823882
broadcast : boolean, default False
38833883
For aggregation functions, return object of same size with values
38843884
propagated
3885+
raw : boolean, default False
3886+
If False, convert each row or column into a Series. If raw=True the
3887+
passed function will receive ndarray objects instead. If you are
3888+
just applying a NumPy reduction function this will achieve much
3889+
better performance
38853890
reduce : boolean or None, default None
38863891
Try to apply reduction procedures. If the DataFrame is empty,
38873892
apply will use reduce to determine whether the result should be a
@@ -3890,11 +3895,6 @@ def apply(self, func, axis=0, broadcast=False, raw=False, reduce=None,
38903895
while guessing, exceptions raised by func will be ignored). If
38913896
reduce is True a Series will always be returned, and if False a
38923897
DataFrame will always be returned.
3893-
raw : boolean, default False
3894-
If False, convert each row or column into a Series. If raw=True the
3895-
passed function will receive ndarray objects instead. If you are
3896-
just applying a NumPy reduction function this will achieve much
3897-
better performance
38983898
args : tuple
38993899
Positional arguments to pass to function in addition to the
39003900
array/series

0 commit comments

Comments
 (0)