title: Sklearn transform error: Expected 2D array, got 1D array instead
body: <p>I use sklearn to transform data with this code.</p>
  
  <pre><code>sc = MinMaxScaler()
  
  test= df['outcome']
  y = sc.fit_transform(test) 
  </code></pre>
  
  <p>It show error like this.</p>
  
  <pre><code>ValueError: Expected 2D array, got 1D array instead:
  array=[ 21000. 36000.  5000. ...  7000.  12000.  11000.].
  Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.
  </code></pre>
  
  <p>How to fix it?</p>