The above error occurs when i run the following code:
x=df[[‘highwaympg’]]
z=df[[‘horsepower’,‘curbweight’,‘enginesize’,‘highwaympg’]]
lm.fit(z,df[‘price’])
yhat=lm.predict(x)
1 post - 1 participant
The above error occurs when i run the following code:
x=df[[‘highwaympg’]]
z=df[[‘horsepower’,‘curbweight’,‘enginesize’,‘highwaympg’]]
lm.fit(z,df[‘price’])
yhat=lm.predict(x)
1 post - 1 participant