title: Using python to extract regression coefficients
body: <p>I performed a poisson regression in python and then did poisson.fit().summary to get the following output: </p>
  
  <pre><code>poisson.fit().summary()
  &lt;class 'statsmodels.iolib.summary.Summary'&gt;
  """
                   Generalized Linear Model Regression Results                  
  ==============================================================================
  Dep. Variable:                    Y   No. Observations:                   28
  Model:                            GLM   Df Residuals:                       26
  Model Family:                 Poisson   Df Model:                            1
  Link Function:                    log   Scale:                          1.0000
  Method:                          IRLS   Log-Likelihood:            -1.5464e+07
  Date:                Wed, 13 Feb 2019   Deviance:                   3.0928e+07
  Time:                        19:54:52   Pearson chi2:                 4.43e+07
  No. Iterations:                     6   Covariance Type:             nonrobust
  ==============================================================================
                   coef    std err          z      P&gt;|z|      [0.025      0.975]
  ------------------------------------------------------------------------------
  Intercept     12.8383      0.000   2.95e+04      0.000      12.837      12.839
  x            0.0094   1.11e-05    848.646      0.000       0.009       0.009
  ==============================================================================
  </code></pre>
  
  <p>However, my question is, how can I extract the intercept and X value separately?</p>
  
  <p>I tried <code>poisson.params</code> (as suggested in previous posts), but it doesn't seem to work for me. I get such errors </p>
  
  <pre><code>*** AttributeError: 'GLM' object has no attribute 'params'
  </code></pre>
  
  <p>I expect for each of the coefficients to be stored in separate variables: </p>
  
  <pre><code>Intercept =  12.8383
  X = 0.0094
  </code></pre>
  
  <p>is this possible?</p>