adfuller test received ValueError: too many values to unpack

Viewed 5611

I have some numbers stored in a variable called "constant"

enter image description here

When I try to test the mean-reversion by using

cadf = ts.adfuller(constant)

I received ValueError: too many values to unpack.

How can I solve it?

Thanks!

1 Answers

adfuller() function accepts only 1d array of time series so first convert it using:

data1 = data.iloc[:,0].values
Related