From 94d0c0ff4146f0779eed330253992a9090e1642a Mon Sep 17 00:00:00 2001 From: Stepfen Shawn Date: Thu, 9 Feb 2023 17:25:53 +0800 Subject: [PATCH] Update apply.py --- pandas/core/apply.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/apply.py b/pandas/core/apply.py index c28da1bc758cd..81b6d5b9801d2 100644 --- a/pandas/core/apply.py +++ b/pandas/core/apply.py @@ -212,7 +212,7 @@ def transform(self) -> DataFrame | Series: func = cast(AggFuncTypeDict, func) return self.transform_dict_like(func) - # func is either str or callable + # The type of "func" is either str or callable func = cast(AggFuncTypeBase, func) try: result = self.transform_str_or_callable(func)