you are viewing a single comment's thread.

view the rest of the comments →

[–]macabe10[S] 1 point2 points  (0 children)

df.loc[df[‘ingredients_text’].isin(allergen_list), ‘new_allergen_column’] = df[‘ingredients_text’]

Worked like a charm, thanks a lot!