From 262ce8339724df27edb70c455a61da038828e4a4 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Sat, 7 Nov 2015 11:39:53 +0100 Subject: [PATCH] DOC: Document the args of DataFrame.apply in the same order as in the signature --- pandas/core/frame.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index b06f1b947bbe7..de74b70cdfaac 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -3882,6 +3882,11 @@ def apply(self, func, axis=0, broadcast=False, raw=False, reduce=None, broadcast : boolean, default False For aggregation functions, return object of same size with values propagated + raw : boolean, default False + If False, convert each row or column into a Series. If raw=True the + passed function will receive ndarray objects instead. If you are + just applying a NumPy reduction function this will achieve much + better performance reduce : boolean or None, default None Try to apply reduction procedures. If the DataFrame is empty, 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, while guessing, exceptions raised by func will be ignored). If reduce is True a Series will always be returned, and if False a DataFrame will always be returned. - raw : boolean, default False - If False, convert each row or column into a Series. If raw=True the - passed function will receive ndarray objects instead. If you are - just applying a NumPy reduction function this will achieve much - better performance args : tuple Positional arguments to pass to function in addition to the array/series