-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
ENH: add read_csv sniffing (sep=None) for C engine #9645
Comments
👍 I would also appreciate this feature. |
@jorisvandenbossche : The reason it isn't in the C engine is because we rely on Python's cc @jreback |
sniffing is quite cheap and you don't have to implement it at all this can be done before the engine actually opens the file as a preprocessing step (and make the interface uniform between the engines) |
@jreback : PythonParser first iterates through all of the skipped rows before finally reaching a row that should be read after which it sniffs the delimiter from that line. Let me see if something similar can be done with the C engine. |
that's fine this is an explicit action |
Hmm...this is not as simple to do without duplicating a good amount of code from the PythonParser. Need to see if there is a nice way to refactor this. |
If you now do
pd.read_csv(myfile.csv, sep=None)
, you get the warning:Is this warning correct that it is not implemented for the c engine?
If so, it could maybe be added.
The text was updated successfully, but these errors were encountered: