title: Meaning of this code : is_noun = lambda pos: pos[:2] == 'NN'
body: <p>Here is my code [Link] (<a href="https://www.kaggle.com/fabiendaniel/customer-segmentation" rel="nofollow noreferrer">https://www.kaggle.com/fabiendaniel/customer-segmentation</a>) Part 3.1 Product Descriptions</p>
  
  <p>Doing NLP , came across this code, precisly looking for 'pos' part, what does it do? </p>
  
  <pre><code>is_noun = lambda pos: pos[:2] == 'NN'
  </code></pre>