title: Error only size-1 arrays can be converted to Python scalars
body: <p>I have this code:</p>
  
  <pre><code>for a in data_X:
      for i in a:
          if not i.isdigit():
              x=hash(i)
              data_X[column,row]=x
          row=row+1
      row=0
      column=column+1
  
  
  desired_array = [int(numeric_string) for numeric_string in data_X]
  </code></pre>
  
  <p>and I the Data_X are these (only a part of the Array):</p>
  
  <pre><code>[['42' '-6725209669690155188' '159449' ... '40' '4017763880221344027'
    '-136014339944321305']
   ...
   ['30' '-6725209669690155188' '154950' ... '60' '4017763880221344027'
    '-136014339944321305']]
  </code></pre>
  
  <p>and I wanted to transform the numbers from char ( e.g '42') to int (42) and I thougt I could doing this: <code>desired_array = [int(numeric_string) for numeric_string in data_X]</code>
  but I received the error "Error only size-1 arrays can be converted to Python scalars" and I don't know what can I do..</p>
  
  <p>these is what I want to have: from :</p>
  
  <pre><code>[['42' '-6725209669690155188' '159449' ... '40' '4017763880221344027'
    '-136014339944321305']
   ...
   ['30' '-6725209669690155188' '154950' ... '60' '4017763880221344027'
    '-136014339944321305']]
  </code></pre>
  
  <p>to:</p>
  
  <pre><code>[[42 -6725209669690155188 159449 ... 40 4017763880221344027
    -136014339944321305]
   ...
   [30 -6725209669690155188 154950 ... 60 4017763880221344027
    -136014339944321305]]
  </code></pre>
  
  <p>Can somebody tell me where is the Problem?</p>
  
  <p>thanks!</p>