We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3a8559 commit ce0e67fCopy full SHA for ce0e67f
pandas/core/nanops.py
@@ -1363,6 +1363,10 @@ def nankurt(
1363
m4 = adjusted4.sum(axis, dtype=np.float64)
1364
1365
# Several floating point errors may occur during the summation due to rounding.
1366
+ # This computation is similar to the one in Scipy
1367
+ # https://github.com/scipy/scipy/blob/04d6d9c460b1fed83f2919ecec3d743cfa2e8317/scipy/stats/_stats_py.py#L1429
1368
+ # With a few modifications, like using the maximum value instead of the averages
1369
+ # and some adaptations because they use the average and we use the sum for `m2`.
1370
# We need to estimate an upper bound to the error to consider the data constant.
1371
# Lets call:
1372
# x: true value in data
0 commit comments