Say I have the following dataframe
data = [['Alex','Dog'],['Bob','Cat'],['Clarke','Giraffe']]
df = pd.DataFrame(data,columns=['Name','Age'])
+--------+---------+
| Name | Animal |
+--------+---------+
| Alex | Dog |
| Bob | Cat |
| Clarke | Giraffe |
+--------+---------+
What is the most efficient way of getting the name of the column where the string Giraffe
is found (i.e. Animal). We can assume there is only one of those string in the entire DataFrame.