Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Python
Re: reading data file into a list
 

Index | Next | Previous | View Flat


__peter__ at web

May 2, 2012, 3:17 AM


Views: 170
Permalink
Re: reading data file into a list [In reply to]

ArifulHossain tuhin wrote:

> I have this data file which contains raw data in newline terminated for
> like below:
>
> 10.6626
> 11.2683
> 11.9244
> 12.5758
> 14.1402
> 15.1636
>
> Now i want to read that file and import this data into a numpy array. how
> should i go about it?

myarray = numpy.loadtxt(filename)

--
http://mail.python.org/mailman/listinfo/python-list

Subject User Time
reading data file into a list etothepowerpi at gmail May 2, 2012, 2:59 AM
    Re: reading data file into a list __peter__ at web May 2, 2012, 3:17 AM
    Re: reading data file into a list kiuhnm03.4t.yahoo.it at mail May 2, 2012, 4:12 AM
    Re: reading data file into a list steve+comp.lang.python at pearwood May 2, 2012, 4:33 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.