Skip to content
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

How to store information from PeriodicDataFrame #451

Open
rebeckaflynn1 opened this issue Jun 10, 2022 · 1 comment
Open

How to store information from PeriodicDataFrame #451

rebeckaflynn1 opened this issue Jun 10, 2022 · 1 comment

Comments

@rebeckaflynn1
Copy link

i am new to coding, so apologies for asking this. I am looking to store the data that comes in through PeriodicDataFrame. My project is to intake Barometric Pressure every 30 seconds, and then later tell me if there is a change in pressure by a certain amount. In order to do the second part of this, I would need to store the data frame instead of keeping just the latest. How can this be done with streamz, or is it not possible?

@martindurant
Copy link
Member

Yes, this is a design goal of streamz: nodes can have state, and consider new data in the context of that state. There are several example classes of this (see the code), or maybe you can do it with streamz.dataframe.DataFrame.aggregate/accumulate_partitions. If you can share more about what the logic looks like and maybe generate a sample workflow, we can figure out something that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants