[Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread per freem
hi all, what's the most efficient / preferred python way of parsing tab separated data into arrays? for example if i have a file containing two columns one corresponding to names the other numbers: col1\t col 2 joe\t 12.3 jane \t 155.0 i'd like to parse into an array() such that

Re: [Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread João Luís Silva
per freem wrote: hi all, what's the most efficient / preferred python way of parsing tab separated data into arrays? for example if i have a file containing two Check out the python csv module. Documentation at http://docs.python.org/library/csv.html JLS

Re: [Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread Ryan May
On Fri, Mar 13, 2009 at 5:18 PM, per freem perfr...@gmail.com wrote: hi all, what's the most efficient / preferred python way of parsing tab separated data into arrays? for example if i have a file containing two columns one corresponding to names the other numbers: col1\t col 2