<p>我在excel文件的列中应用了一个处理方法。现在,我想导出这个处理过的列和所有其他未处理的列。在</p>
<p><strong>我的数据(小例子):</strong></p>
<pre><code> A B C
French house Phone <phone_numbers>
English house email blablabla@gmail.com
French apartment my name is Liam
French house Hello George
English apartment Ethan, my phone is <phone_numbers>
</code></pre>
<p><strong>我的脚本:</strong></p>
^{pr2}$
<p><strong>我的输出:</strong></p>
<pre><code>AttributeError Traceback (most recent call last)
<ipython-input-7-8fd973998937> in <module>()
7
8 no_mails = emails(data)
----> 9 no_mails.to_excel('new_data.xlsx')
AttributeError: 'str' object has no attribute 'to_excel'
</code></pre>
<p><strong>输出良好:</strong></p>
<pre><code> A B C
French house Phone <phone_numbers>
English house email <adresse_mail>
French apartment my name is Liam
French house Hello George
English apartment Ethan, my phone is <phone_numbers>
</code></pre>
<p>我的剧本很好,只是</p>
<pre><code>no_mails.to_excel('new_data.xlsx')
</code></pre>
<p>似乎不起作用。在</p>