Closed wong-korben closed 3 years ago
Ah, yes. When fread sees a line starting with #
at the beginning of the file, it assumes that line is a comment.
You can work around this by using option skip_to_string="#"
.
Ah got it, I thought it was some commenting thing. Thanks!
fread seems to be unable to read column names if the first line starts with "# ".
For example I am trying to read test.txt:
However when running the following code:
dt.fread('test.txt')
The column names are replaced with C0, C1, C2 etc. as shown:fread works perfectly fine in these scenarios:
and
Environment: windows 10 python 3.8 datatable 1.0.0