Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. id email created_at
  2. 0 1 son@mail_a.com 2017-01-21 18:19:00
  3. 1 2 boy@mail_b.com 2017-01-22 01:19:00
  4. 2 3 girl@mail_c.com 2017-01-22 01:19:00
  5.  
  6. mail_a.com
  7. mail_d.com
  8. mail_e.com
  9.  
  10. email_domains = open('file.txt', 'r')
  11. to_drop = email_domains.read().splitlines()
  12. dropped_df = test_df[~test_df['email'].isin(to_drop)]
  13. print(test_df)
  14.  
  15. id email created_at
  16. 0 2 boy@mail_b.com 2017-01-22 01:19:00
  17. 1 3 girl@mail_c.com 2017-01-22 01:19:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement