Code and data used to produce charts analyzing the SP500 returns for my blog post.
The SP500 price and dividend data as well as the CPI values were taken from Robert Shiller's website. I exported his spreadsheet into CSV. The SP500 total return index I used to make sure my constructed index matched was taken from Yahoo! Finance.
There's a chance the environment.yml file contains everything needed to run the notebook with Anaconda. Otherwise, you can use the GitHub's non-interactive viewer here.