key_words_to_search = ['hello', 'goodbye']  
df = pd.DataFrame({
'col1':['hello','hi','ciao'],
'col2':['hello panda','goodbye','bonjour'],
'col3':['ni hao','hola','hello']})
I've been using something like the below, but not sure how to get the actual name of the column. Thanks!
mask = df.applymap(lambda x: word in str(word).lower())
temp = df[mask.any(axis=1)].copy() 
    