[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

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

2013-05-31 Thread Albert Kottke
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 ben.r...@ou.edu wrote: On Fri, May 31, 2013 at 5:08 PM, Albert Kottke albert.kot

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

2013-05-31 Thread Albert Kottke
(got 3 columns instead of 1) On Fri, May 31, 2013 at 3:02 PM, Pierre GM pgmdevl...@gmail.com 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 the keyword names is not True. If names is True, then genfromtxt