title: How to fix 'TypeError: float() argument must be a string or a number, not 'map''
body: <p>I am trying to split the dataset into training data. </p>
  
  <pre><code>depth=1
  height=width=48
  X_train = np.array(map(str.split, train_set.pixels), np.float32)
  </code></pre>
  
  <p>This is the code I was trying to run</p>
  
  <pre><code>X_train = np.array(map(str.split, train_set.pixels), np.float32)
  TypeError: float() argument must be a string or a number, not 'map'
  </code></pre>