title: Error when trying to apply box-cox transformation to a column in Pandas
body: <p>This should be very basic, but there seem to be no post about it here (well, I didn't find any).</p>
  
  <p>I tried to apply box-cox transformation to a column in Pandas, but got this error:</p>
  
  <pre><code>ValueError: Length of values does not match length of index
  </code></pre>
  
  <p>This is what I've done:</p>
  
  <pre><code>from scipy import stats 
  df['boxcox_col_1'] = stats.boxcox(df['col_1'])
  </code></pre>
  
  <p>Shouldn't this work?</p>
  
  <p>It's just a regular pandas column with numeric variables ranging from 0.005 to 39 and no missing values. </p>