Re: parsing tab separated data efficiently into numpy/pylab arrays

2009-03-24 Thread mapb81
You could take a look/use the very handy csv2rec function in matplotlib.mlab, which creates numpy struct arrays. Marco On Mar 13, 10:19 pm, per wrote: > hi all, > > what's the most efficient / preferred python way ofparsingtab > separated data intoarrays? for example if i have a file containing

Re: parsing tab separated data efficiently into numpy/pylab arrays

2009-03-13 Thread Matteo
On 13 Mar, 23:19, per 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 > joe    \t  12.3 > jane   \t 155.0

parsing tab separated data efficiently into numpy/pylab arrays

2009-03-13 Thread per
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 i