Skip to content

Commit bb4a4ab

Browse files
committed
Add inference type info to apply
1 parent 56847c5 commit bb4a4ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/frame.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10286,7 +10286,10 @@ def apply(
1028610286
either the DataFrame's index (``axis=0``) or the DataFrame's columns
1028710287
(``axis=1``). By default (``result_type=None``), the final return type
1028810288
is inferred from the return type of the applied function. Otherwise,
10289-
it depends on the `result_type` argument.
10289+
it depends on the `result_type` argument. The return type of the applied
10290+
function is inferred based on the first computed result obtained after
10291+
applying the function to a Series object.
10292+
1029010293
1029110294
Parameters
1029210295
----------

0 commit comments

Comments
 (0)