title: convert list of strings to numpy list of lists
body: <p>I'm reading data (numbers) from a file into a list, as follows:</p>
  
  <pre><code>    weight_file = open(model_name, 'r').readlines()
      weights = weight_file[6:]
  </code></pre>
  
  <p>It seems that I can't read them straight into a <code>numpy.array</code> because the first rows of the file contains words.</p>
  
  <p>So now, in <code>weights</code> I have a list as follows: <code>[['1 2 3'] ['4 5 6']]</code></p>
  
  <p>Now I want to convert it into a <code>numpy.array</code>. I tried this:</p>
  
  <pre><code>    weights_np = np.array([])
      for weight in weights:
          weights_np = np.append(weights_np, weight.split())
  </code></pre>
  
  <p>What this does is create a single vector: <code>[1, 2, 3, 4, 5, 6]</code>, but I need it to be represented as some kind of matrix - like a list of lists. How can I do that?</p>
  
  <p>Thanks</p>