I recently posted here saying that I kept getting an error with my input, in which people told me to use numpy's reshape command. However I keep getting this error now from this code:
X_train= X_train.reshape(-1, 1)
X_test = X_test.reshape(-1, 1)
y_train = y.reshape(-1, 1)
myModel = LinearRegression()
myModel.fit(X_train,y_train)
Error: 'Series' object has no attribute 'reshape' this comes up when running the first line.