Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final_result = ( pairs_filtered[['stalkee', 'stalkee', 'stalker']]
- .unique()
- .groupby( ['stalkee','stalker'] ,
- {"location_count" : agg.COUNT })
- .topk( 'location_count', k=5 )
- .materialize() )
- print( final_result )
Add Comment
Please, Sign In to add comment