# Please skip reading all sections marked as In[1..10]
import matplotlib.pyplot as plt
import seaborn as sb
import mh_db as db
import mh_lib as ml
from IPython.display import display, HTML
%matplotlib inline
df_all, df_path, path_info = ml.get_df_path_segments(db, './csv/dec-05-to-dec-09-2016.csv', path_id=1)
HTML(data = ml.show_congested_paths(df_path))
ml.show_congested_path_graphs(df_all, plt=plt)
HTML(data = ml.show_congested_segments(df_all, method='mean'))
ml.show_congested_segment_graphs(df_all, plt=plt, method='mean')
ml.show_congested_segment_graphs(df_all, plt=plt, method='mean', index=1)
ml.show_congested_segment_graphs(df_all, plt=plt, method='mean', index=2)