,python-3.x"/>

首页 > 解决方案 > 无法理解输出,代码运行正常:

问题描述

我无法理解输出:

无法理解错误

from statsmodels.tsa.vector_ar.vecm import coint_johansen

import pandas as pd

import matplotlib.pyplot as plt

df_x = pd.read_csv('pfc2.csv',index_col=0)

df_y = pd.read_csv('REC2.csv',index_col=0)

dy = pd.DataFrame({'x':df_x['Close'],'y':df_y['Close']})

coint_johansen(dy ,0, 1)

print(coint_johansen(dy ,0, 1))

标签: python-3.x

解决方案


result = coint_johansen(dy ,0, 1)

result.eig, result.lr1

你应该像上面的代码一样阅读。


推荐阅读