rolling icon indicating copy to clipboard operation
rolling copied to clipboard

Computationally efficient rolling window iterators for Python

Results 21 rolling issues
Sort by recently updated
recently updated
newest added

It would be interesting to try and implement an algorithm to find the longest increasing subsequence in a sliding window. Such an approach is described in *Albert et al.*, 2004:...

enhancement

Essentially a rolling version of Python's `in` operator. Return True if the window contains a given string, e.g.: ```python >>> seq = 'rollrollingndsfw' >>> r = rolling.Contains(seq, window_size=10, match='rolling') >>>...

enhancement

TLDR; don't use skip lists I've found that a sorted list implemented with standard list + bisect module will be faster for tracking median than rolling's implementation up to about...

enhancement

The rolling summation of float values is not precise enough in the calculation of variance/std. ```python >>> import rolling >>> list(rolling.Std([0,1,1,1], 3)) [0.5773502691896258, 7.450580596923828e-09] ``` The first value is correct....

bug

Now rolling.apply can roll window at one-dimensional,will be able to support multidimensional in the future?Like that: ![image](https://user-images.githubusercontent.com/11767062/46645815-4c0b5700-cbb9-11e8-93a4-aed6cb91032a.png) I find it will be finish in that "https://gist.github.com/seberg/3866040".

enhancement

Hi, thanks for the good effort you have put in this project already. May I ask for an enhancement of the documentation? It would be good to have an overview...

documentation

Possible algorithms to implement over a rolling window: - [ ] palindromic / longest palindrome (Manacher's algorithm) - [x] monotonicity - [ ] convexity

enhancement
investigate

Short question, is it somehow possible to extend this to handle NaN, like numpy `nanmedian`?

enhancement
investigate

It seems that pandas has not provided iterators for rolling/ewm functions, and your project is really nice structured. Maybe another base class is needed for iterators of ewm statistics.

enhancement

- [ ] PROD, rolling mean of X * Y: 1/window * sum(x*y) - [ ] COV, rolling covariance of X, Y, PROD - mean(X) * mean(Y) - [ ]...

enhancement