I\'m using sci-kit learn linear regression algorithm. While scaling Y target feature with:
Ys = scaler.fit_transform(Y)
I got
Solution was linked on reshaped method on documentation page.
Insted of Y.reshape(-1,1) you need to use:
Y.reshape(-1,1)
Y.values.reshape(-1,1)