You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# floating point error## #18044 in _libs/windows.pyx calc_kurt follow this behavior# to fix the fperr to treat denom <1e-14 as zeronumerator=_zero_out_fperr(numerator)
denominator=_zero_out_fperr(denominator)
Here the denominator is coming out as 2.4e-17 which is getting set to 0, because the numbers involved are so small.
Not sure how scipy is handling this to make it numerically stable for extremely small values.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Pandas can't give a right result of kurtosis. But the
scipy.stats.kurtosis
can.Expected Behavior
see the code
Installed Versions
Replace this line with the output of pd.show_versions()
The text was updated successfully, but these errors were encountered: