title: How do I call A np.zeros of integers?
body: <pre><code>Musica = np.zeros((row*120,3))
  
  for k in range(21, 90):
      for i in range(row):
          for j in range(Max[k], Min[k]):
              Musica[i*120 + j,:] = 0,i,j
              if np.all(data[i*col + j,:]==(255.000,0.000,0.000,i,j)):
                  Music[i*120 + j,:] = 1,i,j
  </code></pre>
  
  <p><code>Max[k]</code> and <code>Min[k]</code> are number that belong to the mathematical interger group, but I get this message from python </p>
  
  <blockquote>
    <p>"TypeError: range() integer end argument expected, got numpy.float64."</p>
  </blockquote>
  
  <p>How do I call a <code>np.zeros</code> of the integer type ?</p>
  
  <p>Right now I am trying to use the fallowing code:</p>
  
  <pre><code>Musica = np.zeros((row*120,3))
  
  for k in range(21, 90):
      for i in range(row):
          Max = int(Max[k])
          Min = int(Min[k])
          for j in range(Max, Min):
              Musica[i*120 + j,:] = 0,i,j
              if np.all(data[i*col + j,:]==(255.000,0.000,0.000,i,j)):
                  Musica[i*120 + j,:] = 1,i,j
  </code></pre>
  
  <p>And the error message I am receiving is:</p>
  
  <pre><code>Traceback (most recent call last):
  
    File "&lt;ipython-input-115-4aef2441146c&gt;", line 1, in &lt;module&gt;
      runfile('C:/Users/Arthur_USP/Desktop/Informação/Nova abordagem/untitled0.py', wdir='C:/Users/Arthur_USP/Desktop/Informação/Nova abordagem')
  
    File "C:\Users\Arthur_USP\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile
      execfile(filename, namespace)
  
    File "C:\Users\Arthur_USP\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile
      exec(compile(scripttext, filename, 'exec'), glob, loc)
  
    File "C:/Users/Arthur_USP/Desktop/Informação/Nova abordagem/untitled0.py", line 181, in &lt;module&gt;
  
  TypeError: 'int' object has no attribute '__getitem__'
  </code></pre>
  
  <p>Where line 181 is "Max = int(Max[k])"</p>