B [u^E@s0ddlmZmZddlZddlmZddZdS))displayHTMLNc CsJ|d}|d}x*|D] }ttd|dx|D]}||d|k|d|k@}tj|d}||d|k}tjdd} t} | d|d |d | j tj|d|d d d dd| j ||d|dddd| j ||dd dd| j ||dd dd| d| d| tqBWq WdS)Nmodel customer_typez

z

timestamp))figsizez Forecast z demand ()Zdemand-blackZActual)fmtcolorlabelp10p90g333333?z80% Confidence Interval)alpharp50zPrediction Median)r rmeanzPrediction MeanDatezRides Taken (Demand))uniquerrmpldatesdate2numpltfiguregca set_title plot_date fill_between set_xlabel set_ylabellegendshow) ZactualsZ predictionsmodelsZcustomer_typesrrZ predictionZprediction_tsnumsactualfigaxr(?/workspace/my-aws-example/Forecasting-workshop/util/plotting.pyplot_fcst_resultssP       r*) IPython.core.displayrr matplotlibrmatplotlib.pyplotpyplotrr*r(r(r(r)s