I have a .csv file of contact information that I import as a pandas data frame.
>>> import pandas as pd >>> >>> df = pd.read_csv
Another way using query
query
In [961]: to_drop = ['Clerk', 'Bagger'] In [962]: df.query('title not in @to_drop') Out[962]: fName lName email title 0 John Smith jsmith@gmail.com CEO