It is a Visual Studio issue. It's running fine on other platforms like IPython notebook. Can you please suggest what is the issue.
Though it is a very simple code, it is running infinitely and not giving any output.
from sklearn import preprocessing
X = [3,4,5,1,8,7,6,9,2]
X= preprocessing.scale(X)
print (X)
sklearn is installed. I have also tried adding:
from sklearn.preprocessing import scale
There is no syntax error. I'm using Python 2.7 on Visual Studio, Ubuntu.