-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Error on bad lines pyarrow #45029
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
Error on bad lines pyarrow #45029
Conversation
I don't know the specific context of that comment, but many of the |
@@ -135,6 +135,9 @@ def test_pyarrow_engine(self): | |||
1,2,3,4,""" | |||
|
|||
for default in pa_unsupported: | |||
if default == "on_bad_lines": |
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.
Is there a reason that on_bad_lines is skipped here and tested separately?
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.
Good point, missed that. The test was failing before but forget to fix. Adjusted it now accordingly
The TODO was to uncomment that line from the set which I see you've done here. |
"kwds", | ||
[{"on_bad_lines": "warn"}, {"error_bad_lines": True}, {"warn_bad_lines": True}], | ||
) | ||
def test_pyarrow_bad_lines_fails(self, pyarrow_parser_only, kwds): |
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 this test be removed now? It seems to duplicate the test_pyarrow_engine
test above now.
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.
good point, thx
thanks @phofl and @lithomas1 |
Can we use pandas' The default engine's |
cc @lithomas1 Not sure if that was what the TODO was referring to