File tree 1 file changed +9
-0
lines changed
1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,15 @@ see the :ref:`groupby docs <groupby.transform.window_resample>`.
229
229
230
230
The API for window statistics is quite similar to the way one works with ``GroupBy `` objects, see the documentation :ref: `here <groupby >`.
231
231
232
+ .. warning ::
233
+
234
+ When using ``rolling() `` and an associated function the results are calculated with rolling sums. As a consequence
235
+ when having values differing with magnitude :math: `1 /np.finfo(np.double).eps` this results in truncation. It must be
236
+ noted, that large values may have an impact on windows, which do not include these values. `Kahan summation
237
+ <https://en.wikipedia.org/wiki/Kahan_summation_algorithm> `__ is used
238
+ to compute the rolling sums to preserve accuracy as much as possible. The same holds true for ``Rolling.var() `` for
239
+ values differing with magnitude :math: `(1 /np.finfo(np.double).eps)^{0.5 }`.
240
+
232
241
We work with ``rolling ``, ``expanding `` and ``exponentially weighted `` data through the corresponding
233
242
objects, :class: `~pandas.core.window.Rolling `, :class: `~pandas.core.window.Expanding ` and :class: `~pandas.core.window.ExponentialMovingWindow `.
234
243
You can’t perform that action at this time.
0 commit comments