__author__ = 'gary'

from bokeh.charts import Histogram
from bokeh.plotting import output_file, show

import pandas as pd


def main():
    df = pd.read_pickle('graph_frame.pickle')
    print(df.head())
    hist = Histogram(df, 'time', bins=100, color='reason', title="fails", legend=True)
    output_file("histograms.html")
    show(hist)


if __name__ == '__main__':
    main()
