title: How to include the first few items of a numpy array with python
body: <p>I have array d,  I want array d2
  The rows do not have the same number of items. </p>
  
  <pre><code> d=   [ ['q', 'u', 's', 'a', 'p', 'e', 'a']
       ['500', 'G', 'G', 'C', 'C', 'P', '04/12/2011', '' ]
       ['500', 'G', 'G', 'F', 'C', 'P', '04/12/2011', ''] 
       ['5', 'ZUMZ', 'ZUMZ', 'C', 'C', 'B', '04/12/2011', '']
       ['2', 'ZUMZ', 'ZUMZ', 'F', 'C', 'B', '04/12/2011', '']
       ['7', 'ZUMZ', 'ZUMZ', 'M', 'C', 'B', '04/12/2011', '']]
  </code></pre>
  
  <p>Only the first five itmes. </p>
  
  <pre><code> d2=   [ ['q', 'u', 's', 'a', 'p']
           ['500', 'G', 'G', 'C', 'C']
           ['500', 'G', 'G', 'F', 'C'] 
           ['5', 'ZUMZ', 'ZUMZ', 'C', 'C']
           ['2', 'ZUMZ', 'ZUMZ', 'F', 'C']
           ['7', 'ZUMZ', 'ZUMZ', 'M', 'C']]
  
  
  f = urllib.urlopen(url)
  f = csv.reader(f)
  d= np.asarray(list(f), dtype= 'object')
  print d
  m=  d[:,:]                
  print m   
  </code></pre>
  
  <p>I tried above and m=  d[:,0:5]    </p>