Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2017
74
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.  
  3. name phone email
  4.  
  5. name phone email
  6.  
  7. def remove_warm_list_duplicates(dataframe):
  8. '''Remove rows that have emails from the warmlist'''
  9. warm_list = pd.read_csv(r'warmlist/' + 'warmlist.csv'
  10. , encoding="ISO-8859-1"
  11. , error_bad_lines=False)
  12. warm_list_emails = warm_list['Email Address'].tolist()
  13. dataframe = dataframe[dataframe['Email Address'].isin(warm_list_emails) == False]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement