Hi,
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.
I took the slider app code (https://github.com/bokeh/bokeh/blob/master/examples/app/sliders_applet/sliders_app.py) as a template and tried to load the data frame from the file into a separate obj.df field in the “create” function. But apparently that doesn’t work - I get this error:
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
