We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f7ff231 commit f350900Copy full SHA for f350900
pandas/core/frame.py
@@ -6501,6 +6501,14 @@ def applymap(self, func):
6501
--------
6502
DataFrame.apply : Apply a function along input axis of DataFrame.
6503
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
+
6512
Examples
6513
6514
>>> df = pd.DataFrame([[1, 2.12], [3.356, 4.567]])
0 commit comments