Skip to content

Commit 81471f8

Browse files
pranavkp71mroeschke
andcommitted
DOC: simplify dtype inference note in DataFrame.apply
Co-authored-by: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com>
1 parent 366b1d2 commit 81471f8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10632,9 +10632,7 @@ def apply(
1063210632
.. warning::
1063310633
1063410634
When ``raw=True``, the result dtype is inferred from the **first**
10635-
returned value. If that value is not ``None`` but later calls return
10636-
``None``, a ``TypeError`` may occur because NumPy infers a
10637-
non-nullable dtype.
10635+
returned value.
1063810636
1063910637
result_type : {'expand', 'reduce', 'broadcast', None}, default None
1064010638
These only act when ``axis=1`` (columns):

0 commit comments

Comments
 (0)