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