擅长:python、mysql、java
<p>看来您需要<a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.core.groupby.GroupBy.apply.html" rel="nofollow noreferrer">^{<cd1>}</a>自定义函数:</p>
<pre><code>def func(x):
#your code
return x
survivor.apply(func)
</code></pre>