-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
BUG: Read_Table and Read_Csv does not raise when delim_whitespace=True and sep=default is given #36583
Comments
Hi, does anyone work on this issue? I want to contribute |
Hi, not as far as I now. Please check the discussion in the PR mentioned above and the related issues before starting |
Thanks for the quick reply, I'll take it |
As far as I see, this bug is due to the fact that in both cases the explicitly provided values of separators are equal/identical to their default values. When pandas compares whether a separator/delimiter value was given, it checks it against these default values. No One possible solution might be setting all default values to None and assigning their proper values later. In my opinion, it is possibly going to break automatical detection of separators, i.e. if sep is None, the Python parsing engine (not C) will be used to automatically detect the separator. |
Based on those discussions I see that you use lib.no_default as a sentinel object. I'll apply it here |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
Both statement should raise a
ValueError
Expected Output
ValueError
Must also edit docs. See #36560 for discussion.
cc @simonjayhawkins
Output of
pd.show_versions()
master
The text was updated successfully, but these errors were encountered: