From a2f1de113856e9724dbd3e1dbab04292e79f5d79 Mon Sep 17 00:00:00 2001 From: Alvaro-Kothe Date: Fri, 21 Nov 2025 19:01:50 -0300 Subject: [PATCH] perf: compute kurtosis using groupby method --- pandas/core/frame.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index c8c246434f6d8..ae555b6a2eeaf 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -12148,8 +12148,7 @@ def _get_data() -> DataFrame: result.index = df.index return result - # kurtosis excluded since groupby does not implement it - if df.shape[1] and name != "kurt": + if df.shape[1]: dtype = find_common_type( [block.values.dtype for block in df._mgr.blocks] )