From a4df185cb84d966b462ca880f847e59884d4f848 Mon Sep 17 00:00:00 2001 From: tlynch1 Date: Tue, 8 Oct 2019 11:27:54 -0700 Subject: [PATCH 1/2] remove doc note about apply applying a function to the first element twice --- pandas/core/frame.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 1a19910a0957c..97481087da326 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6729,13 +6729,6 @@ def apply( DataFrame.aggregate: Only perform aggregating type operations. DataFrame.transform: Only perform transforming type operations. - Notes - ----- - In the current implementation apply calls `func` twice on the - first column/row to decide whether it can take a fast or slow - code path. This can lead to unexpected behavior if `func` has - side-effects, as they will take effect twice for the first - column/row. Examples -------- From 833bbac535267add20997110f3cabbf1288e4592 Mon Sep 17 00:00:00 2001 From: tlynch1 Date: Tue, 8 Oct 2019 12:28:05 -0700 Subject: [PATCH 2/2] remove double line break --- pandas/core/frame.py | 1 - 1 file changed, 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 97481087da326..5200ad0ba0d23 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -6729,7 +6729,6 @@ def apply( DataFrame.aggregate: Only perform aggregating type operations. DataFrame.transform: Only perform transforming type operations. - Examples --------