Section 1 unit 7

Course Name: Mean Reversion Strategies In Python, Section No: 01, Unit No: 61, Unit type: Video



Please can someone tell why i can not see the graph of ADF - are the files saved in the python in this course. I have typed everything on the python page below

You can try the below code to practice. Thanks for highlighting. We will update the content shortly.

 
import pandas as pd
import matplotlib.pyplot as plt
prices_df = pd.read_csv('AUDCAD.csv',index_col=0)
import statsmodels.tsa.stattools as ts
adf = ts.adfuller(prices_df['prices'])
print('ADF Test Stats=', adf[0])
print('ADF Critical Values', adf[4])
prices_df.prices.plot()
plt.show()

Mant thanks!