擅长:python、mysql、java
<p>将<a href="http://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.concat.html" rel="nofollow noreferrer">^{<cd1>}</a>与删除第二级<code>MultiIndex</code>一起使用,更改级别名称并最后将其转换为新列:</p>
<pre><code>df = pd.concat(dict_df).reset_index(level=1, drop=True).rename_axis('Dept').reset_index()
</code></pre>