x_train=[]
y_train=[]
for i in range(8,64):
x_train.append(trs[i-8:i,0])
y_train.append(trs[i,0])
x_train,y_train=np.array(x_train),np.array(y_train)
x_train=np.reshape(x_train,(x_train.shape[0],x_train.shape[1],1))
AttributeError Traceback (most recent call last)
<ipython-input-24-624f0e25b1ac> in <module>
2 y_train=[]
3 for i in range(8,64):
----> 4 x_train.append(trs[i-8:i,0])
5 y_train.append(trs[i,0])
6 x_train,y_train=np.array(x_train),np.array(y_train)
AttributeError: 'numpy.ndarray' object has no attribute 'append'