title: Value Error in Spyder in data preprocessing
body: <p>I am getting error(ValueError: shape mismatch: value array of shape (10,) could not be broadcast to indexing result of shape (1,10)) on executing below code....</p>
  
  <p>import pandas as pd,numpy as np,matplotlib as mpl</p>
  
  <pre><code>dataset=pd.read_csv("pre-process_datasample.csv")
  features=dataset.iloc[:,[0,1,2]].values
  label=dataset.iloc[:,[3]].values
  
  from sklearn.preprocessing import Imputer
  
  imputerNaN=Imputer(missing_values="NaN",strategy="mean",axis=0)
  features[:,[1,2]]=imputerNaN.fit_transform(features[:,[1,2]])
  
  from sklearn.preprocessing import LabelEncoder,OneHotEncoder
  
  label_encoder=LabelEncoder()
  
  features[:,[0]]=label_encoder.fit_transform(features[:,[0]])
  
  
  but when I change following code:
  features[:,[0]]=label_encoder.fit_transform(features[:,[0]]) to
  features[:,0]=label_encoder.fit_transform(features[:,0])
  I don't get any error....why??? Please Help
  </code></pre>