SyntaxFix
Write A Post
Hire A Developer
Questions
While creating the matrix X and Y vector use values.
X
Y
values
X=dataset.iloc[:,4].values Y=dataset.iloc[:,0:4].values
It will definitely solve your problem.