We use sqlalchemy to access the database. It is going to call the psycopg2 library we installed in the previous part.

The same libraries for visualization and data analysis are called as in the previous example. Note DatetimeTickFormatter is necessary to modify the aspect of dates, otherwise they'll be not readable (and this without counting on the default unsorted American -- rather than ISO -- format).