-
-
Notifications
You must be signed in to change notification settings - Fork 31.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
Feature request: sniff csv quoting and lineterminator #129374
Comments
This probably belongs on discuss.python.org. But in any event, you'll need to specify more information. What specific changes would you like to see? |
In general, I would expect the |
Could you provide sample code that shows what results you are getting, and explain how that differs from what expect to get? |
Sure:
So instead of Thanks for your time! |
If you read a csv file, alter the data and then write it back, it would be very nice to recreate also the quoting behaviour. So e.g. if the file is quoted in style
csv.QUOTE_NONNUMERIC
, it would be very useful to have thequoting
property set correctly in thedialect
object returned bycsv.Sniffer().sniff
.Also, I just figured out that the line terminator is also hard-coded to "\r\n". Would also be nice to be adaptive...
The text was updated successfully, but these errors were encountered: