ajcr / rolling

Computationally efficient rolling window iterators for Python (sum, variance, min/max, etc.)
MIT License
202 stars 8 forks source link

Can the rolling.Apply support multidimensional? #16

Open thouger opened 6 years ago

thouger commented 6 years ago

Now rolling.apply can roll window at one-dimensional,will be able to support multidimensional in the future?Like that: image I find it will be finish in that "https://gist.github.com/seberg/3866040".

ajcr commented 6 years ago

Hi @thouger, thanks for the link. My intention is that this library will only support 1D rolling windows, unlike the NumPy example. This is for a couple of reasons:

thouger commented 6 years ago

Hi @ajcr ,thanks for you answer,The reason that i want to add is because the "rolling" package is very overall package about 1D in pip.Because it can print the iterators result and it's a feature that numpy doesn't have(numpy only provide the result such as max,min when rolling window),so if the rolling package can print n-dimensional result when rolling window that will be even excellent. I will continue to explore the rolling window n-dimensional method.

ajcr commented 6 years ago

Thanks @thouger: I'll give your suggestion some more thought. It might be possible to find a solution.