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:
Configuring pandas
Get Learning pandas - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.