Closed
Description
Currently we have a check here that artificially handles a numerical precision issue in rolling.var
and rolling.std
where our rolling variance calculation is carrying forward floating point artifacts. Ideally we should be using a more numerically stable algorithm (maybe Kahan summation) so this check isn't so arbitrary.
pandas/pandas/_libs/window/aggregations.pyx
Line 305 in 601eff1