擅长:python、mysql、java
<p>你用的是什么版本的熊猫?如果您查看文档,它会说明:</p>
<blockquote>
<p>Write out the column names. If a list of strings is given it is assumed to be aliases for the column names.</p>
<p>Changed in version 0.24.0: Previously defaulted to False for Series</p>
</blockquote>
<p>由于您正在将数据帧转换为series对象,这可能是问题的原因。你知道吗</p>
<p>文件可在以下位置找到:</p>
<p><a href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html" rel="nofollow noreferrer">https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html</a></p>