title: How to display a percentage of an Array in python
body: <p>How would you print out a percentage of an array?</p>
  
  <p>For example:</p>
  
  <p>if i had</p>
  
  <pre><code>x = np.array([2,3,1,0,4,3,5,4,3,2,3,4,5,10,15,120,102,10])
  </code></pre>
  
  <p>How would you set a percentage of the array to zero? if I wanted to keep the first 10% of an array as it is and change the remaining 90% of the array to zeros?</p>
  
  <p>Thank you in advance?</p>