File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -797,8 +797,10 @@ The return type of the function passed to :meth:`~DataFrame.apply` affects the
797
797
type of the ultimate output from DataFrame.apply
798
798
799
799
* If the applied function returns a ``Series ``, the ultimate output is a ``DataFrame ``.
800
- The columns match the index ``Series `` returned by the applied function.
800
+ The columns match the index of the ``Series `` returned by the applied function.
801
801
* If the applied function returns any other type, the ultimate output is a ``Series ``.
802
+ * A ``result_type `` kwarg is accepted with the options: ``reduce ``, ``broadcast ``, and ``expand ``.
803
+ These will determine how list-likes return results expand (or not) to a ``DataFrame ``.
802
804
803
805
:meth: `~DataFrame.apply ` combined with some cleverness can be used to answer many questions
804
806
about a data set. For example, suppose we wanted to extract the date where the
You can’t perform that action at this time.
0 commit comments