How can I replace multiple values with a mapping in a Pandas DataFrame?
I have one column that I want to replace with the following mapping.
mapping
apple=fruit
tomato=vegetable
steak=protein
milk=dairy
So that my column becomes.
col1 -> col1
apple fruit
apple fruit
tomato vegtable
steak protein
milk dairy
How can I do this most efficiently?