Advertisement
Dodma

Untitled

Apr 22nd, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. calls_grouped = calls.groupby(['user_id','month']).agg({'duration': ['count', 'sum']}).reset_index()
  2. internet_grouped = internet.groupby(['user_id', 'month']).agg({'mb_used': 'count'}).reset_index()
  3. messages_grouped = messages.groupby(['user_id','month']).agg({'message_date':'count'}).reset_index()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement