I’m new to bokeh. I’m playing with bokeh-server and trying to build a simple app.
I want to load a pandas dataframe from a .csv file with three columns - ‘Name’, ‘timestamp’, and ‘value’.
For the visualization, I want to build something similar to the sliderApp example (http://bokeh.pydata.org/en/latest/docs/server_gallery/sliders_server.html) with one plot of ‘timestamp’ versus ‘value’ columns in the data frame. I want to have a single text input field (like the ‘title’ box in the slider example) where a user can input a name. I want to filter the pandas data frame where value in ‘Name’ column is equal to the user-input and plot only the timestamps and values corresponding to that name.
AttributeError: unexpected attribute ‘df’ to SlidersApp, possible attributes are children, disabled, height, inputs, name, plot, session, source, tags, text or width
Here I declare all the things that are going to be attached to my App and what type of things they’re going to be. You can see that I’ve got a number of instances of ColumnDataSource attached. These could have been populated from a local csv (via pd.read_csv), although in my case they came from a db.
However, there is a workaround. If you were to use obj._df I believe that the properties checking would be ignored and you could attach a dataframe to it. But that’s probably not the safest move.
I’m pretty sure that you can’t have Instance(DataFrame) as a valid property though, only Instance(ColumnDataSource).
I’m new to bokeh. I’m playing with bokeh-server and trying to build a simple app.
I want to load a pandas dataframe from a .csv file with three columns - ‘Name’, ‘timestamp’, and ‘value’.
For the visualization, I want to build something similar to the sliderApp example (http://bokeh.pydata.org/en/latest/docs/server_gallery/sliders_server.html) with one plot of ‘timestamp’ versus ‘value’ columns in the data frame. I want to have a single text input field (like the ‘title’ box in the slider example) where a user can input a name. I want to filter the pandas data frame where value in ‘Name’ column is equal to the user-input and plot only the timestamps and values corresponding to that name.
AttributeError: unexpected attribute ‘df’ to SlidersApp, possible attributes are children, disabled, height, inputs, name, plot, session, source, tags, text or width
How do I load data from a local file?
Thanks!
MS
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].