So I am trying to make an algorithm that test for cointegration:
import matplotlib.pyplot as plt import pandas as pd import pandas_datareader as web import da