Taking data from a text file and putting it into a numpy array
numpy.loadtxt() is the function you are looking for. This returns a two-dimenstional array.
I need some help taking data from a .txt file and putting it into an array. I have a very rudimentary understanding of Python, and I have read through the documentation sited in threads relevant to my problem, but after hours of attempting to do this I still have not been able to get anywhere. The data in my file looks like this:


0.000000000000000000e+00 7.335686114232199684e-02
1.999999999999999909e-07 7.571960558042964973e-01
3.999999999999999819e-07 9.909475704320810374e-01
5.999999999999999728e-07 3.412754086075696081e-01


I used numpy.genfromtxt, but got the following output: array(nan)
Could you tell me what the proper way to do this is?