Skip to content

Commit 88e0589

Browse files
committed
Replace std with var
1 parent 9c08706 commit 88e0589

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/window/rolling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ def _get_corr(a, b):
19081908
window=window, min_periods=self.min_periods, center=self.center
19091909
)
19101910

1911-
return a.cov(b, **kwargs) / (a.std(**kwargs) * b.std(**kwargs))
1911+
return a.cov(b, **kwargs) / (a.var(**kwargs) * b.var(**kwargs)) ** 0.5
19121912

19131913
return flex_binary_moment(
19141914
self._selected_obj, other._selected_obj, _get_corr, pairwise=bool(pairwise)

0 commit comments

Comments
 (0)