Skip to content

Commit a2f1de1

Browse files
committed
perf: compute kurtosis using groupby method
1 parent 7bf6660 commit a2f1de1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12148,8 +12148,7 @@ def _get_data() -> DataFrame:
1214812148
result.index = df.index
1214912149
return result
1215012150

12151-
# kurtosis excluded since groupby does not implement it
12152-
if df.shape[1] and name != "kurt":
12151+
if df.shape[1]:
1215312152
dtype = find_common_type(
1215412153
[block.values.dtype for block in df._mgr.blocks]
1215512154
)

0 commit comments

Comments
 (0)