Re: Untitled

From Chartreuse Parakeet, 6 Months ago, written in Plain Text, viewed 90 times. This paste is a reply to Untitled from Perl Treeshrew - go back
URL http://codebin.org/view/3bfd0f17/diff Embed
Viewing differences between Untitled and Re: Untitled
calls_number = (calls.query('duration > 0')
                             .groupby(['user_id', 'month'])
                             .agg({'id':'count'}))



agg({'id':'count'}))


#?????? ???????
calls_number = (calls.query('duration > 0')
                     .pivot_table(index = 'user_id',
                                  columns = 'month',
                                  values = 'id', 
                                  aggfunc = 'count'))

Reply to "Re: Untitled"

Here you can reply to the paste above