Skip to content

Instantly share code, notes, and snippets.

@18182324
Created May 25, 2021 08:48
Show Gist options
  • Save 18182324/925a94c78e3277cd054d1639128064e9 to your computer and use it in GitHub Desktop.
Save 18182324/925a94c78e3277cd054d1639128064e9 to your computer and use it in GitHub Desktop.
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