def chek_stationary(x):
result=adfuller(x)
label=['ADF statestic test','p value','num of legs','num of observation']
for value,label in zip(result,label):
print(label + ":" + result)
if result[1] <= 0.05 :
print ('there is evedincee null hypothesis')
print('which means there is no root here ')
print ('and its stationary ')
else :
print ('there isnot evedence and there is root and its nun stationrary')
每当我尝试此功能时,都会收到此错误:"can only concatenate str (not "tuple") to str"
我应该怎么办 ?