17.7736 17.7736 17.7638 17.7638 17.754 17.754 17.7834 17.7834 17.7834 17.7834 17.7834 17.7834 17.7834 17.7834 17.8324 17.8324 17.8324 17.852 17.9304 17.9304 17.9304 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1362 18.146 18.146 18.1656 18.1754 18.1656 18.1656 18.1656 18.1656 18.1656 18.146 18.1362 18.1362 18.1656 18.1656 18.1656 18.1264 18.1264 18.1264 18.1264 18.1264 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1166 18.1264 18.1264 18.1264 18.1264 18.1
I think this dataset is stationary because the values very near with each other But the surprise when using the Kpss test with this code show that this is not stationary . What is the wrong please I am very confuse
# KPSS test
from statsmodels.tsa.stattools import kpss
#57358
data = pd.read_csv("C:/Users/3800.txt") #, header=0, index_col=0)
def kpss_test(data, **kw):
statistic, p_value, n_lags, critical_values = kpss(data, **kw)
# Format Output
print(f'KPSS Statistic: {statistic}')
print(f'p-value: {p_value}')
# print(f'num lags: {n_lags}')
print('Critial Values:')
for key, value in critical_values.items():
print(f' {key} : {value}')
print(f'Result: The series is {"not " if p_value < 0.05 else ""}stationary')
kpss_test(data)