Just trying to do a simple linear regression but I'm baffled by this error for:
regr = LinearRegression()
regr.fit(df2.iloc[1:1000, 5].values, df2.iloc[1:1000, 2].values)
which produces:
ValueError: Found arrays with inconsistent numbers of samples: [ 1 999]
These selections must have the same dimensions, and they should be numpy arrays, so what am I missing?