擅长:python、mysql、java
<p>好吧,这里有几件事。你漏掉了代码,我不得不填补空白。例如,您没有定义<code>doStuff</code>,所以我不得不这样做。在</p>
<pre><code>doStuff = lambda w, r, e: w + r + e
</code></pre>
<p>有了这个定义,你的代码就不能运行了。我得猜你想干什么。我猜您希望在其他列旁边有一个名为<code>'specialSauce'</code>的附加列。在</p>
<p>所以,这就是我如何设置和解决问题的方法。在</p>
<h3>设置和解决方案</h3>
^{pr2}$
<h3>也</h3>
<p>您试图使用<a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.append.html" rel="nofollow">^{<cd3>}</a>。根据链接文档,它将指定为参数的DataFrame附加到要附加到的DataFrame的末尾。您可能想使用<a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.concat.html" rel="nofollow">^{<cd4>}</a>。在</p>