-
Notifications
You must be signed in to change notification settings - Fork 150
Streaming dataframe visualization #126
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
The current plot method is entirely special-cased to a time-series x-axis and quantitative y values. It would be nice to generalize this. |
I definitely think this is a good idea, and shouldn't be too difficult to build something like this on top of HoloViews. HoloViews will automatically switch between cases 1. and 2. depending on what you are plotting, e.g. a Curve plot will use I imagine the API would be modeled on the plotting API in pandas itself so maybe it would also make sense to write an extensible plotting interface like what's being discussed for pandas in pandas-dev/pandas#14130. That could be handled in a similar way as what @TomAugspurger has put together in a fork, which allows registering different plotting engines (see here). This would also allow building these components without integrating them with |
Honestly I may not know enough to produce a sensible API here and would appreciate any collaboration. The current |
The pandas |
Yeah, from my perspective as a user this API does fit my brain well
Well, not to rush you, but if that weekend happened to be this weekend then this would get shown off in a talk at PyData NYC. |
Ha, well that's a good incentive and producing something demo-able without exposing all the different options for styling and so on shouldn't be too much effort. I'll let you know. What form should the prototype take, a PR or should I simply monkeypatch a |
If you're game then I would probably submit a PR adding a Note that the dataframe code has undergone a fair bit of churn since you looked at it last. |
I guess you're right that this would have to be a plot object to get the same pandas API |
An interesting alternative for the updating case is just to use |
I was digging through some old code where I was trying to unpick a related Stack Overflow question and found this example of streaming from a dataframe into holowviews:
I donlt think I did ever work out how to create a |
@philippjfr Hi, i would like to show my stream data in holoviews table, also i am using callback function and write below codes: dmap7=hv.DynamicMap(hv.Table, streams=[op.buffer7]) pn.panel(dmap7).show() you know i can plot data well, but the tabel's data does not show in web. |
Thanks for your question @majidam20. I'd recommend filing a post on our Discourse describing in detail what you tried and what exactly isn't working. |
The streamz.dataframe module could use a good
plot
method. This has two requirements:As far as I can tell there are two options here:
I believe that both libraries are filling out their capabilities here.
There are two different situations to cover.
column_data_source.update(new_df)
call. This corresponds to thestreamz.dataframe.core.Frames
classcolumn_data_source.stream(new_df, n)
call. This corresponds to thestreamz.dataframe.core.Frame
class.The text was updated successfully, but these errors were encountered: