Here are two ways to install Bokeh
conda install bokeh
This will install the most recent published Bokeh release from the Continuum Analytics Anaconda repository, along with all dependencies.
pip install bokeh
In [1]:
import TimeSeries as ts
import pandas as pd
I am using csv file in Mississippi folder for example here. Make sure you write the right path and file name of the csv file is in the next cells.
In [2]:
cd ../../Data/mississippi/
If you are using your ready-to-go pandas dataframe, just set data equals your dataframe. If there are other than one columns at the end of your dataframe which is string indicator not to be shown in the plot, line 20 in TimeSeires.py needs to be changed. Just set the number 2 to (number of indicator columns -1).
In [3]:
data = pd.read_csv('UMR_Day42015-08-04_Nulls_Removed.csv')
In [4]:
data.head()
Out[4]:
We can just ignore the warning message in the next cell which is for the modification of the dataframe not the csv file.
The interactive plotting only works for single selection now, and I will work on the multiselection later.
In [7]:
cd ../../Analysis/TimeSeries/
In [8]:
ts.timeplot(data)