[Matplotlib-users] loading csv data into arrays

2009-08-12 Thread per freem
hi all, i have tab-separated text files that i would like to parse into arrays in numpy/scipy. i simply want to be able to read in the data into an array, and then use indexing to get some of the columns, or some of the rows, etc. the key thing is that these columns might be strings or might be

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Sandro Tosi
On Wed, Aug 12, 2009 at 16:56, per freemperfr...@gmail.com wrote: hi all, i have tab-separated text files that i would like to parse into arrays in numpy/scipy. i simply want to be able to read in the data into an numpy's loadtxt() Regards, -- Sandro Tosi (aka morph, morpheus, matrixhasu)

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Ryan May
On Wed, Aug 12, 2009 at 10:01 AM, Sandro Tosi mo...@debian.org wrote: On Wed, Aug 12, 2009 at 16:56, per freemperfr...@gmail.com wrote: hi all, i have tab-separated text files that i would like to parse into arrays in numpy/scipy. i simply want to be able to read in the data into an

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread per freem
hi all, thanks for these comments. i tried loadtxt and genfromtxt and am having similar problems. my data looks like this: my;header1 myheader-2_amyheader-2_b a:5-X:b 3;0;5;0;0;0 3.015 c:6-Y:d 0;0;0;0;0;0 2.5 i simply want to read these in, and have all numbers be read in as

Re: [Matplotlib-users] loading csv data into arrays

2009-08-12 Thread Ryan May
On Wed, Aug 12, 2009 at 10:47 AM, per freem perfr...@gmail.com wrote: hi all, thanks for these comments. i tried loadtxt and genfromtxt and am having similar problems. my data looks like this: my;header1 myheader-2_amyheader-2_b a:5-X:b 3;0;5;0;0;0 3.015 c:6-Y:d 0;0;0;0;0;0