Pandas Groupby - naming aggregate output column
<p>I have a <code>pandas</code> <code>groupby</code> command which looks like this:</p>

<pre><code>df.groupby(['year', 'month'], as_index=False).agg({'users':sum})
</code></pre>

<p>Is there a way I can name the <code>agg</code> output something other than 'users' during the groupby command?  For example, what if I wanted the sum of users to be total_users?  I could rename the column after the groupby is complete, but wonder if there is another way.  </p>