Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature Request: CSV support for more quoting options... #491

nickzoic started this conversation in Ideas
Discussion options

in DuckDBPyRelation.to_csv, use of any quoting value other than csv.QUOTE_ALL throws an exception.

This is annoying because the fairly common csv.QUOTE_STRINGS is pretty useful for differentiating between strings and numbers in CSV.

The underlying CSV writer doesn't support all the usual options either but there is a FIXME

 // FIXME: we could gain some performance here by checking for certain types if they ever require quotes
 // (e.g. integers only require quotes if the delimiter is a number, decimals only require quotes if the
 // delimiter is a number or "." character)

... which while it doesn't explicitly mention compatibility with the other common CSV options is at least pointing in a similar direction.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /