擅长:python、mysql、java
<p>是的,使用<code>groupby</code>对象的<code>aggregate</code>方法。在</p>
<pre><code>jobs = df.groupby('Job').aggregate({'Salary': 'mean'})
</code></pre>
<p>甚至还有一种方法可以作为捷径:</p>
^{pr2}$
<p>见<a href="http://pandas.pydata.org/pandas-docs/stable/groupby.html" rel="nofollow">http://pandas.pydata.org/pandas-docs/stable/groupby.html</a>
更多的信息和大量的例子</p>