Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. name phone email
  2. 1 1 hi@hi.com
  3. 2 2 bye@bye.com
  4. 3 3 yes@yes.com
  5.  
  6. name phone email
  7. x y bye@bye.com
  8. a b yes@yes.com
  9.  
  10. name phone email
  11. 1 1 hi@hi.com
  12.  
  13. def remove_warm_list_duplicates(dataframe):
  14. '''Remove rows that have emails from the warmlist'''
  15. warm_list = pd.read_csv(r'warmlist/' + 'warmlist.csv'
  16. , encoding="ISO-8859-1"
  17. , error_bad_lines=False)
  18. warm_list_emails = warm_list['Email Address'].tolist()
  19. dataframe = dataframe[dataframe['Email Address'].isin(warm_list_emails) == False]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement