If string in a dataframe contains substring, then replace everything with something else

A = “I want to eat sushi”

I want to run a code where if A has “eat” and “want”, replace the whole string to “YES!”

But this A is in the context of a dataframe, so the code needs to be able to go through each of the rows.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum