Notebook setup
The workbook and examples will all require the following code to execute and format output. It is similar to the previous chapters but also includes matplotlib imports to support many of the graphics that will be created and some modifications to fit data to the page in the text:
In [1]: import pandas as pd import pandas.io.data import numpy as np import datetime import matplotlib.pyplot as plt %matplotlib inline pd.set_option('display.notebook_repr_html', False) pd.set_option('display.max_columns', 6) pd.set_option('display.max_rows', 10) pd.set_option('display.width', 78) pd.set_option('precision', 3)