X = [ 1994. 1995. 1996. 1997. 1998. 1999.]
y = [1.2 2.3 3.4 4.5 5.6 6.7]
clf = LinearRegression()
clf.fit(X,y)
This gives the above mentioned error. Both X and y are numpy arrays
How do I remove this error?
I tried the method given here and reshaped X and y by using X.reshape((-1,1)) and y.reshape((-1,1)). However it did not work out.