I have a list of search terms and a dataframe with a Description column. I'd like to flag each row that has a description containing one or more of the listed terms. I have the following started but am not sure how to correctly loop this:
terms = ['x','y']
df
for t in terms:
df['Test_Flag'] = np.where(df['Description'].str.contains(t, case=False, na=False), t, '')
Any thoughts?

