Created
May 25, 2021 08:48
-
-
Save 18182324/925a94c78e3277cd054d1639128064e9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
import pandas as pd | |
from johansen import coint_johansen | |
df_x = pd.read_csv ("yourfile.csv",index_col=0) | |
df_y = pd.read_csv ("yourfile.csv",index_col=0) | |
df = pd.DataFrame({'x':df_x['Close'],'y':df_y['Close']}) | |
coint_johansen(df,0,1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment