-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: add expanding window time support #16425
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
What is the expectation of this? Doesn't expanding just provide a window yielding all values up to that point in time? It's not possible to provide the size of the window in the expanding constructor hence the error (it gets inadvertently sent to the |
I am also not sure what the original intent was, but if it is to specify |
i'll clarify. it is useful to run an expanding window with a min_periods. For rolling min_periods defaults to the same as the window length
Note this doesn't actually work for rolling either.
|
What would you expect in the above examples though? Perhaps I'm misreading this but I feel like this is a way of requiring a minimum distance from a given point in the window to calculate. So with the above you'd ignore any entry that wasn't at least 2s away from the window location (?). If that's the case do we need to restrict this to frequencies or could we apply that same time of logic to numeric indices as well? |
Yes, I also don't directly see how it would work. Let's take an example:
The But what would a |
cc @mroeschke |
xref #16431
[5] should easily work. This is just disabled ATM.
The text was updated successfully, but these errors were encountered: