I have some numbers stored in a variable called "constant"
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!
I have some numbers stored in a variable called "constant"
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!
adfuller()
function accepts only 1d array of time series
so first convert it using:
data1 = data.iloc[:,0].values
© 2022 - 2024 — McMap. All rights reserved.
constant
2d array?adfuller()
accepts 1d array only. – Pissed