title: Append float to list with for loop in python
body: <p>I am trying to add a list of monthly temperatures into a big list that will contain 24 months of temperatures. The problem is that they are given in floats, but to append items, they must be integers. </p>
  
  <pre><code>temperatures = []
  np.array(temperatures, dtype = np.float32)
  </code></pre>
  
  <p>(after my first month, I append my values to the big list temperatures and empty TEMP1 for the next month)</p>
  
  <pre><code>for item in TEMP1:    
        np.insert(temperatures, TEMP1[item])
  </code></pre>
  
  <p>the message of error is : </p>
  
  <pre><code>File "/home/piscopo/Bureau/EC/Alert_extraction.py", line 87, in &lt;module&gt;
  np.insert(temperatures, TEMP1[item])
  
  TypeError: list indices must be integers, not numpy.float32
  </code></pre>
  
  <p>Thank you</p>