I have a very quick question about the notation on accessing an array in python.
Is this line:
trainPredictPlot[look_back:len(trainPredict) + look_back, :] = trainPredict
I've seen arrays are being accessed like this x[a:b] but never like this x[a:b,:]
Can someone explain me with detail what this line of code is doing? What does it mean to put colon before the closing bracket? What about the comma?
m[a:b, :]. Note the comma. See docs.scipy.org/doc/numpy/reference/arrays.indexing.html