title: Python pandas - how to access parameters of stats ols?
body: <p>Using a Pandas dataframe and the stats ols method, Im able to run a regression using the code     </p>
  
  <pre><code>import pandas as pd
  from pandas.stats.api import ols
  df = pd.DataFrame({"A": [56, 55, 57, 58, 56, 58, 59, 60, 63, 62, 63, 65, 66, 68], "B": [1,2,3,4,5,6,7,8,9,10,11,12,13,14]})
  res = ols(y=df['A'], x=df[['B']])
  </code></pre>
  
  <p>However although this works</p>
  
  <pre><code>print res
  </code></pre>
  
  <p>Im trying to get just the fitted coefficient, and this does not work</p>
  
  <pre><code>print res.params
  </code></pre>
  
  <p>i get the error</p>
  
  <pre><code>AttributeError: 'OLS' object has no attribute 'params'
  </code></pre>
  
  <p>how can I access the parameters, I am particularly looking the extract the coefficient of the regression, that is all I am interested in.</p>