import pandas df = pandas.DataFrame() df[df.text_column.str.contains('whatever')] #to replace ctrl+f in pandas