I have this code snippet but i got warning. How can avoid this. I search this problem but couldnt find any to solve mine.
And here is the code that gets warning, (df_test_arima is pandas dataframe)
df_test_arima['ACTUAL'] = y_test
y_test is from ;
X_train,X_test,y_train,y_test = train_test_split(X.index,y, shuffle = False, test_size=0.050)
Warning that i got
SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead
Thank you :)