title: How to convert integers in arrays to floats in python?
body: <p>The question I got was this:</p>
  
  <p>Create a 3 x 6-dimensional array, containing only float values.</p>
  
  <p>So my solution was this:</p>
  
  <pre><code>import numpy as np
  
  
  data = np.array([(1,2,3,4,5,6),(1,2,3,4,5,6),(1,2,3,4,5,6)])
  
  data
  </code></pre>
  
  <p>I've tried using float(data), np.float(data) but they don't seem to work.</p>
  
  <p>How do I convert them to floats or is there another way to solve this question? What's the limitations on the float function?</p>