Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Incorrect skipping of lines with inline comments and printing warnings #16472
Comments
pankajp
changed the title from
Fix skipping lines with inline comments and printing warnings to Incorrect skipping of lines with inline comments and printing warnings
May 24, 2017
pankajp
referenced
this issue
May 24, 2017
Merged
Fix correct warning with c engine when skipping lines #16455
jreback
added Bug IO CSV
labels
May 24, 2017
jreback
added this to the
0.20.2
milestone
May 24, 2017
TomAugspurger
closed this
in #16455
May 24, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pankajp commentedMay 24, 2017
Code Sample, a copy-pastable example if possible
Problem description
Only lines with <= 2 fields should appear in the df, others should be skipped and their warning should be printed on stderr.
Output
Problems:
Expected Output
Output of
pd.show_versions()INSTALLED VERSIONS
commit: None
python: 2.7.13.final.0
python-bits: 64
OS: Linux
OS-release: 4.10.14-200.fc25.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.19.2
nose: 1.3.7
pip: 9.0.1
setuptools: 34.3.3
Cython: 0.25.2
numpy: 1.11.3
scipy: 0.19.0
statsmodels: 0.8.0
xarray: None
IPython: 5.3.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2016.3
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.2
matplotlib: 2.0.0
openpyxl: 2.4.1
xlrd: None
xlwt: None
xlsxwriter: None
lxml: 3.7.3
bs4: 4.4.1
html5lib: 0.999
httplib2: None
apiclient: None
sqlalchemy: 1.1.6
pymysql: None
psycopg2: None
jinja2: 2.9.5
boto: None
pandas_datareader: 0.2.1