Inappropriate result of expr skew
and kurtosis
for a magic constant inputs
#15067
Closed
2 tasks done
skew
and kurtosis
for a magic constant inputs
#15067
Checks
Reproducible example
I encountered this inappropriate output at this very exact float number:
and the output is
where, the appropriate output should be either 0.0 or nan.
Changing this floating number to others will cause the normal
nan
output.Log output
Issue description
At this very exact number
1.0042855193121334
replicate exact 11 times, the output of polars' skew and kurtosis seems unreasonable. (no matter setting which value forbias
orfisher
inskew
orkurtosis
's parameter)Expected behavior
The appropriate output should be either 0.0 or nan.
Installed versions
The text was updated successfully, but these errors were encountered: