擅长:python、mysql、java
<p>总是值得一试的。。:^)</p>
<pre><code>In [14]: olsresult.params
Out[14]:
GNPDEFL 15.061872
GNP -0.035819
UNEMP -2.020230
ARMED -1.033227
POP -0.051104
YEAR 1829.151465
intercept -3482258.634597
In [15]: dict(olsresult.params)
Out[15]:
{'ARMED': -1.0332268671737328,
'GNP': -0.035819179292614578,
'GNPDEFL': 15.061872271452557,
'POP': -0.051104105653539733,
'UNEMP': -2.0202298038172479,
'YEAR': 1829.151464613984,
'intercept': -3482258.6345966831}
</code></pre>
<p>另请参见<code>Series</code>对象的<code>.to_dict()</code>方法。在</p>