Guest User

Untitled

a guest
Jul 16th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. final_result = ( pairs_filtered[['stalkee', 'stalkee', 'stalker']]
  2. .unique()
  3. .groupby( ['stalkee','stalker'] ,
  4. {"location_count" : agg.COUNT })
  5. .topk( 'location_count', k=5 )
  6. .materialize() )
  7.  
  8. print( final_result )
Add Comment
Please, Sign In to add comment