title: How to fix 'tuple index out of range' error on sklearn fit_transform?
body: <p>I have a one dimensional tuple with data that I have read from a .csv file. I then initialize a One Hot Encoder class with the code below. However, I keep getting an error</p>
  
  <p>I have tried converting the tuple to a 2D Tuple, but it hasn't worked.</p>
  
  <pre class="lang-py prettyprint-override"><code>output_data = dataset.iloc[:,9].values
  
  #Encoding the categorical output data (There is no categorical input data)
  
  one_hot_encoder = OneHotEncoder(categorical_features = [0])
  output_data = one_hot_encoder.fit_transform(output_data).toarray()
  </code></pre>
  
  <p>I keep getting an error of "IndexError: tuple index out of range"</p>