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 Embed
Viewing differences between Untitled and Re: Untitled
calls_number = (calls.query('duration > 0')
                             .groupby(['user_id', 'month'])


#?????? ???????
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