Skip to content

Commit c6b09e4

Browse files
nixphixjreback
authored andcommitted
DOC: update applymap docstring in pandas/core/frame.py (#24612) (#24633)
1 parent b287e97 commit c6b09e4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/core/frame.py

+8
Original file line numberDiff line numberDiff line change
@@ -6501,6 +6501,14 @@ def applymap(self, func):
65016501
--------
65026502
DataFrame.apply : Apply a function along input axis of DataFrame.
65036503
6504+
Notes
6505+
-----
6506+
In the current implementation applymap calls `func` twice on the
6507+
first column/row to decide whether it can take a fast or slow
6508+
code path. This can lead to unexpected behavior if `func` has
6509+
side-effects, as they will take effect twice for the first
6510+
column/row.
6511+
65046512
Examples
65056513
--------
65066514
>>> df = pd.DataFrame([[1, 2.12], [3.356, 4.567]])

0 commit comments

Comments
 (0)