I'm using df.str.contains
to find the "@company" substring in a particular column and drop all that don't match.
I've done it manually to compare and I should be getting over 100 results, but I get only 55 running the script.
DF = DF[DF['Email '].astype(str).str.contains('@company', regex=False)]
I'm using regex=False
to prevent .str.contains
from thinking the @ sign is a Regex
UPDATE:
I solved the issue by moving this part of the program above others, as other "filters" and "drops" were removing rows before the email could be read. Thanks for your input!