Re: [Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
s were detected ! Line #5 (got 3 columns instead of 1) Line #6 (got 3 columns instead of 1) On Fri, May 31, 2013 at 3:02 PM, Pierre GM wrote: > On May 31, 2013 at 23:08:18 , Albert Kottke (albert.kot...@gmail.com) > wrote: > I noticed that genfromtxt() did not skip comments if

Re: [Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
lso permit creating records with np.recfromtxt(). It would also be good to consider other implementations. For example, pandas and R both use names without a comment character. Albert On Fri, May 31, 2013 at 2:14 PM, Benjamin Root wrote: > > On Fri, May 31, 2013 at 5:08 PM, Albert Kottke wrote

[Numpy-discussion] genfromtxt() skips comments

2013-05-31 Thread Albert Kottke
I noticed that genfromtxt() did not skip comments if the keyword names is not True. If names is True, then genfromtxt() would take the first line as the names. I am proposing a fix to genfromtxt that skips all of the comments in a file, and potentially using the last comment line for names. This wi