title: creating a numpy array in a loop
body: <p>I want to create a numpy array by parsing a .txt file. The .txt file consists of features of iris flowers seperated by commas. every line is has one flower example with 5 data seperated with 4 commas. first 4 number is features and the last one is the name. I parse the .txt in a loop and want to append (using numpy.append probably) every lines parsed data into a numpy array called feature_table.</p>
  
  <p>heres the code;</p>
  
  <pre><code>import numpy as np
  iris_data = open("iris_data.txt", "r")
  for line in iris_data:
      currentline = line.split(",")
      #iris_data_parsed = (currentline[0] + " , " + currentline[3] + " , " + currentline[4])
      #sepal_length = numpy.array(currentline[0])
      #petal_width = numpy.array(currentline[3])
      #iris_names = numpy.array(currentline[4])
      feature_table = np.array([currentline[0]],[currentline[3]],[currentline[4]])
      print (feature_table)
      print(feature_table.shape)
  </code></pre>
  
  <p>so I want to create a numpy array using only first, fourth and fifth data in every line
  but I can't make it work as I want to. tried reading numpy docs but couldn't understand it.</p>