title: Assigning ID values to obs that share multiple characteristics
body: <p>have the followign dataset </p>
  
  <pre><code>data = {'Country': ['UK','Ireland', 'Ireland', 'South Africa','Botswana','Italy','Greece'], 
          'Sub_ISO': ['Europe', 'Europe', 'Europe', 'Southern Africa','Southern Africa','Europe', 'Europe'], 
          'Language': ['EN', 'EN', 'IR',  'EN', 'EN', 'ITA', 'GRE'], 
          'count': [170,170, 170, 65,64,53,150]}
  df = pd.DataFrame(data=data)
  </code></pre>
  
  <p>What I would like to do is to be able to identify with a unique id number those countries that are in the same Sub_ISO and speak the same language. Sorry, I am not sure how to go about it, so I can't really provide much more code.  </p>
  
  <p>Expected Output</p>
  
  <p><a href="https://i.stack.imgur.com/z0lzw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z0lzw.png" alt="enter image description here"></a></p>
  
  <p>****EDIT</p>
  
  <p>Ireland and other countries that have more than one language are repeated </p>