擅长:python、mysql、java
<p><code>olsresult.params</code>是一个熊猫系列对象可能不需要转换为dict</p>
<pre><code>In [12]: olsresult.params.get('GNP')
Out[12]: -0.035819179292566283
In [13]: olsresult.params['GNP']
Out[13]: -0.035819179292566283
In [14]: for key, value in olsresult.params.iteritems():
....: print key, value
....:
GNPDEFL 15.0618722714
GNP -0.0358191792926
UNEMP -2.02022980382
ARMED -1.03322686717
POP -0.0511041056537
YEAR 1829.15146461
intercept -3482258.6346
</code></pre>