Guest User

Untitled

a guest
Jul 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. chin_ps = ( checkins.join( checkins, on = 'location_id' )
  2. .rename( {'checkin_ts' : 'checkin_ts_ee',
  3. 'checkin_ts.1' : 'checkin_ts_er',
  4. 'user_id' : 'stalkee' ,
  5. 'user_id.1' : 'stalker' } ) )
  6.  
  7. pairs_filtered = chin_ps[ (chin_ps['checkin_ts_ee'] < chin_ps['checkin_ts_er']) &
  8. (chin_ps['stalkee'] != chin_ps['stalker]) ]
Add Comment
Please, Sign In to add comment