Very similar to this question: Pandas: if row in column A contains "x", write "y" to row in column B
I want to know if a row contains "x" or "y" in multiple different columns then output "z" to a new column.
INPUT:
A B C
Cat Dog Pig
Monkey Tiger Cat
Cow Sheep Goat
If "cat" or "tiger" or "lion" - output 1 to new column
OUTPUT
A B C CAT FAMILY
Cat Dog Pig 1
Monkey Tiger Cat 1
Cow Sheep Goat 0