-
Notifications
You must be signed in to change notification settings - Fork 148
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
ENH: add interval to window/rolling #246
Comments
one pattern I need frequently is |
This is a bit like the "range" functionality |
This is the kludge I had come up with. There may be better:
|
Are you sure
https://github.com/python-streamz/streamz/blob/master/streamz/core.py#L771 |
The call to slice picks every 8th element. So yes, slice comes close, and I did use it in the function I posted above, Not sure github issues is a good place to discuss this, though? |
OK, understood. In that case, feel free to add as PR with relevant tests. |
Currently we keep a certain buffer length, and emit on every new item. Might be useful to ony emit every Nth item, like Spark-streaming does https://spark.apache.org/docs/2.2.0/streaming-programming-guide.html#window-operations
This can be achieved already with normal window-aggregate followed by the Slice operator in #241 , but would save on unnecessary computations.
The text was updated successfully, but these errors were encountered: