title: Python pandas: how to assign value to new column if key is in other column
body: <p>I have a dataframe and want to check if any part of the string from one column is a key from a given dictionary and if so, assign the value of this key to a new column.</p>
  
  <pre><code>dict = {'Apple': 'Fruit', 'Chicken': 'Meat'}
  
  expected df:
  
  #     String           New Column
  # 1   'Red apple'      'Fruit'
  # 2   'Fried chicken'  'Meat'
  </code></pre>
  
  <p>I found this post which is very close to what I need to do but I couldn't find a solution with for using a dictionary: <a href="https://stackoverflow.com/questions/43055050/python-pandas-if-column-string-contains-word-flag">python pandas if column string contains word flag</a></p>
  
  <p>I hope this makes sense, thanks for any help!</p>