You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
so if you specify comment='#' the c-parser gives the same result. Must be an interactions on the skiprows/skip_blank_lines (e.g. somehow things its a 'real' line).
This seems to be related to the problem with skiprows, header=None and lines ending in a trailing space. I downloaded the file, removed all trailing spaces and was able to read the data correctly with skiprows=72 and engine='c'. Mac OS X Yosemite, python 3.4.2 from python.org and pandas version '0.15.0-85-gaf2bfb7'
I'm reading the file available at ftp://aftp.cmdl.noaa.gov/products/trends/co2/co2_mm_mlo.txt. The data start on line 73.
If I use the default C engine with
read_table
I have to specifyskiprows=85
to properly load the table:But if I use the Python engine then the expected
skiprows=72
works:The resulting DataFrame is expected to have 679 rows, but has 691 rows and data from the header if I use
skiprows=72
with the C engine.I've confirmed this behavior on Mac OS X Yosemite with Pandas 0.15.0 and a checkout of master@5cf3d85a7d4c448519fa08f918a114209cfbdf2b.
The text was updated successfully, but these errors were encountered: