With Python, I am using genfromtxt (from numpy) to read in a text file into an array:
y = np.genfromtxt("1400list.txt", dtype=[('mystring','S20'),('myfloat','float')])
Which works okay, except it doesn't seem to read my 2 columns into a 2D array. I am getting:
[('string001', 123.0),('string002', 456.0),('string002', 789.0)]
But I think would like:
[['string001', 123.0],['string002', 456.0],['string002', 789.0]]
I basically want each piece of information as a separate element that I can then manipulate.