title: One hot encoding "got an unexpected keyword argument 'categorical_features'"
body: <p>[<img src="https://i.stack.imgur.com/R5CDP.jpg" alt="categories[0] does not seem to be working [1]"></p>
  
  <p><a href="https://i.stack.imgur.com/XWaUa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XWaUa.jpg" alt="0th column is what I&#39;m trying to one hot encode"></a></p>
  
  <blockquote>
    <p>error :   oneHot = OneHotEncoder(categorical_features = [0]) 
    TypeError: <strong>init</strong>() got an unexpected keyword argument
    'categorical_features'.</p>
  </blockquote>
  
  <p>I'm tring to encode first column
  here's my code sample:</p>
  
  <pre><code>from sklearn.preprocessing import LabelEncoder,OneHotEncoder 
  labelen_x = LabelEncoder() # string to numeric encoding object
  x[:,0]= labelen_x.fit_transform(x[:,0]) # replaces the string labels with numerics for ML algorithm to be able to work with it
  oneHot = OneHotEncoder(categorical_features = [0])
  x = oneHot.fit_transform(x).toarray()
  </code></pre>