We will start with the following configuration of the environment, using our standard import and configuration of pandas. In addition to the normal imports and formatting, we will also import the S&P 500 data and the monthly stock data:
![](https://static.packt-cdn.com/products/9781787123137/graphics/assets/76bd5348-3de1-4251-9529-65f2e66c8f44.png)
We will start with the following configuration of the environment, using our standard import and configuration of pandas. In addition to the normal imports and formatting, we will also import the S&P 500 data and the monthly stock data: