Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name phone email
- 1 1 hi@hi.com
- 2 2 bye@bye.com
- 3 3 yes@yes.com
- name phone email
- x y bye@bye.com
- a b yes@yes.com
- name phone email
- 1 1 hi@hi.com
- def remove_warm_list_duplicates(dataframe):
- '''Remove rows that have emails from the warmlist'''
- warm_list = pd.read_csv(r'warmlist/' + 'warmlist.csv'
- , encoding="ISO-8859-1"
- , error_bad_lines=False)
- warm_list_emails = warm_list['Email Address'].tolist()
- dataframe = dataframe[dataframe['Email Address'].isin(warm_list_emails) == False]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement