title: Creating new column based on multiple different values
body: <p>I have current code below that creates a new column based on multiple different values of a column that has different values representing similar things such as Car, Van or Ship, Boat, Submarine that I want all to be classified under the same value in the new column such as Vehicle or Boat.</p>
  
  <p>Code with Simplified Dataset example:</p>
  
  <pre><code>def f(row):
      if row['A'] == 'Car':
          val = 'Vehicle'
      elif row['A'] == 'Van':
          val = 'Vehicle'
      elif row['Type'] == 'Ship'
          val = 'Boat'
      elif row['Type'] == 'Scooter'
          val = 'Bike'
      elif row['Type'] == 'Segway'
          val = 'Bike'
      return val
  </code></pre>
  
  <p>What is best method similar to using wildcards rather than type each value out if there are multiple values (30 plus values ) that I want to bucket into the same new values under the new column?</p>
  
  <p>Thanks</p>