title: How can I label the numpy array based on values?
body: <p>I have a numpy array of certain values ([5,6,7,8,10,11,12,14]); I want to label each value as:</p>
  
  <ol>
  <li><p>'N' if value is less than or equal 10</p></li>
  <li><p>'Y' if value is greater than 10</p></li>
  </ol>
  
  <p>My output will be an array/list that has the values:
  ['N','N','N','N','N','Y','Y','Y']</p>
  
  <p>I am new to python and immediately need the solution for a project. Kindly help me. Please don't give negative points because i cannot ask any more questions.</p>