擅长:python、mysql、java
<p>应该这样做:</p>
<pre class="lang-py prettyprint-override"><code>df = pd.DataFrame() # Create an empty dataframe, this will be your final dataframe
for key, sub_df in data_animal_id_groups.items():
df = df.append(sub_df, ignore_index=False) # Add your sub_df one by one
print(df)
</code></pre>
<p>如果您想将其保存为csv:</p>
^{pr2}$