-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: fixes bug when using sep=None and comment keyword for read_csv #31667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Added a test case to reproduce issue pandas-dev#31396.
This makes read_csv work when sep=None and comment is set to a value. Fixes pandas-dev#31396.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a whatsnew note. let's target 1.1 with this.
Added a note in whatsnew/v1.0.0.rst and moved test for pandas-dev#31396 to the end of tests/io/parser/test_python_parser_only.py.
When adding
The next commit fixes the issue with comments on the first line. |
Deleted old test case and added test setup as parameter to `test_line_comment`. The new test showed that the previous fix did not work in case the first line was a comment line. This commit should fix this.
The Travis CI build failed with the following message:
Is there a way to rerun it? |
@s-scherrer : This is actually an unrelated error that we need to resolve on cc @pandas-dev/pandas-core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
thanks @s-scherrer |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff