From b2460685353928867aeaab7542748de65ad6bc9b Mon Sep 17 00:00:00 2001 From: Kenil Mehta Date: Sun, 3 May 2020 17:05:11 +0000 Subject: [PATCH 1/2] Checking properly if post_processing function is callable or not in _get_cythonized_result() in class GroupBy (#33955) --- pandas/core/groupby/groupby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py index 873f24b9685e3..f42ac1c03d277 100644 --- a/pandas/core/groupby/groupby.py +++ b/pandas/core/groupby/groupby.py @@ -2236,7 +2236,7 @@ def _get_cythonized_result( if result_is_index and aggregate: raise ValueError("'result_is_index' and 'aggregate' cannot both be True!") if post_processing: - if not callable(pre_processing): + if not callable(post_processing): raise ValueError("'post_processing' must be a callable!") if pre_processing: if not callable(pre_processing): From 4c42f6a839c5fb87e45842d7f8ac5135a2964d4e Mon Sep 17 00:00:00 2001 From: Kenil Mehta Date: Mon, 4 May 2020 05:00:43 +0000 Subject: [PATCH 2/2] Trigger notification