Skip to content

Commit 48b0e16

Browse files
Replace power operator with manual multiplication
Co-authored-by: Álvaro Kothe <[email protected]>
1 parent 8339623 commit 48b0e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/window/aggregations.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ cdef float64_t calc_kurt(int64_t minp, int64_t nobs,
699699

700700
# Relative cutoff as introduced in #62405
701701
# See the comment in nanops.nankurt for further explanation
702-
variance_cutoff = ((EpsF64 * B) ** 2) * dnobs
702+
variance_cutoff = EpsF64 * EpsF64 * A * A * dnobs
703703

704704
# #18044: with uniform distribution, floating issue will
705705
# cause B != 0. and cause the result is a very

0 commit comments

Comments
 (0)