Open JackieJin1025 opened 2 months ago
hmm I guess the difference between rust's f64::EPSILON=2.220446049250313e-16
and numpy's np.finfo(np.float64).resolution=1e-15
is relevant here. I'm not sure if the right fix would be to just hard code 1e-15 instead of using f64::EPSILON, scale f64::EPSILON by the sample size (somehow), check if all inputs are mostly equal, or something else.
Checks
Reproducible example
output
Log output
Issue description
expect to constantly get nan for any size, but get None when size is 0 and -2 when size >= 22
Expected behavior
get nan consistently
Installed versions
related issue: https://github.com/pola-rs/polars/issues/15067