title: import text file as matrix in numpy
body: <p>I am very new to python programming so this might look very easy for most of the pros out there. I have a text file in the following format. I want to import only the numbers to a matrix. Meaning i do not want the spaces (there is also a space at the start of each row) and the data label.</p>
  
  <pre><code> 1 1 1 1 1 1 1 data_1
   1 1 1 1 1 1 2 data_2
   1 1 1 1 1 2 1 data_3
   1 1 1 1 1 2 2 data_4
   1 1 1 1 1 3 1 data_5
   1 1 1 1 1 3 2 data_6
  </code></pre>