Closed
Description
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
a = pd.Series([0,0,0,0,0.00005])
a.kurtosis()
Out[205]: np.float64(0.0)
scipy.stats.kurtosis(a,bias=False)
Out[206]: np.float64(4.999999999999997)
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()