title: AttributeError: 'Series' object has no attribute 'reshape'
body: <p>I'm using sci-kit learn linear regression algorithm. 
  While scaling Y target feature with:</p>
  
  <pre><code>Ys = scaler.fit_transform(Y)
  </code></pre>
  
  <p>I got</p>
  
  <blockquote>
    <p>ValueError: Expected 2D array, got 1D array instead:</p>
  </blockquote>
  
  <p>After that I reshaped using:</p>
  
  <pre><code>Ys = scaler.fit_transform(Y.reshape(-1,1))
  </code></pre>
  
  <p>But got error again:</p>
  
  <blockquote>
    <p>AttributeError: 'Series' object has no attribute 'reshape'</p>
  </blockquote>
  
  <p>So I checked pandas.Series documentation page and it says:</p>
  
  <blockquote>
    <p>reshape(*args, **kwargs)     <em>Deprecated since version 0.19.0.</em></p>
  </blockquote>