-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
add rolling_apply method or function #641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah, I've been thinking about this one for a while (see also #130) One possibly improved API over pandas is to make a rolling a method that produces |
I like the idea of a |
Don't hold your breath on the pandas API changes :). This will take some dedicated effort to make it happen in pandas. Frankly, it's probably easier to do it from scratch in xray where we don't have an old API with which to worry about retaining compatibility. |
@shoyer - I'm going to give creating a |
@jhamman Great, looking forward to it! |
@shoyer breath holding :) pandas-dev/pandas#11603 |
ohh, @shoyer you are thinking about defining |
@jreback yes, for custom iteration like how you can use |
right, I think I will open a new issue for that. its actually a bit tricky as the iteration is done in cython itself, and its a marginal calculation anyhow (e.g. you just keep adding the new value, subtracting values that fall off the window). |
@jreback probably should move discussion here back to the pandas issue :). I don't see any reason why the iteration for moving windows (with
|
it's not how it's implemented that is MUCH slower that marginal calculations |
Yes, of course :). Sometimes still a useful way to think about things, On Wed, Nov 25, 2015 at 3:43 PM, Jeff Reback notifications@github.com
|
yep, agreed. anyhow I created a new issue for it pandas-dev/pandas#11704 |
Pandas has a generic
rolling_apply
function. It would be nice to support a similar api on xray objects. The api I have in mind is something like:The text was updated successfully, but these errors were encountered: