title: How to use inverse_transform in MinMaxScaler for a column in a matrix
body: <p>I scaled a matrix based on its columns, like this: </p>
  
  <pre><code>scaler = MinMaxScaler(feature_range=(-1, 1))
  data = np.array([[-1, 2], [-0.5, 6], [0, 10], [1, 18]])
  scaler = scaler.fit(data)
  data_scaled = scaler.transform(data)
  </code></pre>
  
  <p>the <code>data_scaled</code> gave me the following: </p>
  
  <pre><code>array([[-1. , -1. ],
         [-0.5, -0.5],
         [ 0. ,  0. ],
         [ 1. ,  1. ]])
  </code></pre>
  
  <p>Which is the desired output. However, I'm trying to inverse the scaling of the first column of this matrix, so I tried the following (the error is shown below each line of code): </p>
  
  <pre><code>scaler.inverse_transform(data_scaled[:,1].reshape(1,-1))
  Traceback (most recent call last):
    File "c:\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File "&lt;ipython-input-38-6316f51586e7&gt;", line 1, in &lt;module&gt;
      scaler.inverse_transform(data_scaled[:,1].reshape(1,-1))
    File "c:\anaconda3\lib\site-packages\sklearn\preprocessing\data.py", line 385, in inverse_transform
      X -= self.min_
  ValueError: operands could not be broadcast together with shapes (1,4) (2,) (1,4) 
  </code></pre>
  
  <p>Also, I tried: </p>
  
  <pre><code>scaler.inverse_transform(data_scaled[:,1].reshape(-1,1))
  Traceback (most recent call last):
    File "c:\anaconda3\lib\site-packages\IPython\core\interactiveshell.py", line 2862, in run_code
      exec(code_obj, self.user_global_ns, self.user_ns)
    File "&lt;ipython-input-39-397382ddb3fd&gt;", line 1, in &lt;module&gt;
      scaler.inverse_transform(data_scaled[:,1].reshape(-1,1))
    File "c:\anaconda3\lib\site-packages\sklearn\preprocessing\data.py", line 385, in inverse_transform
      X -= self.min_
  ValueError: non-broadcastable output operand with shape (4,1) doesn't match the broadcast shape (4,2)
  </code></pre>
  
  <p>So, how to rescale the first column of that matrix? </p>