The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Simple Linear Regression with sklearn – Summary Table

Simple Linear Regression with sklearn – Summary Table

0
Votes
0
Answer

Hi, I am still getting error when i use predict function.reg.predict(1740). The error is ValueError: Expected 2D array, got scalar array instead, even though I have used reshape function as said previously.x_matrix = x.values.reshape(-1,1)
x_matrix.shape…… Please advise

No answers so far.
×
EXTENDED SALE
Learn Data Science this Summer!
Get 50% OFF