Get startedGet started for free

Performance tear sheet

In this exercise, you're going to create a full performance tear sheet on the S&P500 returns. You'll see that the elaborate calculations you've done in previous chapters, can very quickly be generated with this simple tear sheet, and by inputting just the returns data. In that sense, this tear sheet can save you a lot of time!

In the first few steps, you'll have to make sure that the data is in the right format otherwise, Pyfolio will give an error. The returns data is available as returns_sp500. Go ahead and inspect the returns_sp500 data in the IPython shell using returns_sp500.head().

This exercise is part of the course

Introduction to Portfolio Analysis in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Set the index to datetime
returns_sp500.index=____.____(____.____)
Edit and Run Code