擅长:python、mysql、java
<p>如果需要两列,请在使用<code>from_dict</code>从字典创建<code>DataFrame</code>时设置关键字参数<code>orient='index'</code>:</p>
<pre><code>final_df = pd.DataFrame.from_dict(final, orient='index')
</code></pre>
<p>见<a href="http://pandas.pydata.org/pandas-docs/dev/generated/pandas.DataFrame.from_dict.html" rel="nofollow">documentation on DataFrame.from_dict</a></p>