I started to look through manually and quickly for I went deep my eyes became uncomfortable. Then I new, a bot has to come to my rescue.
So, I have to write a python script that will help you lookup each email and return those who have more than one "@" character.
Viola!
for email in df['column_title']:
if str(email).count('@') >= 2:
print(email)
I just read the email table into a pandas datafarme and used the python count() function to count the occurrences of "@" in each email string.
If the occurrences of "@" is greater or equal to two, the if conditional statement will catch it.
Note: You can replace '@' with any other string of character you want to lookup.
Enjoy!
No comments:
Post a Comment