rapidsai / cudf

cuDF - GPU DataFrame Library
https://docs.rapids.ai/api/cudf/stable/
Apache License 2.0
8.42k stars 901 forks source link

Feature request: add additional flags to to_csv() function to avoid csv writer adding additional quotation marks #7108

Open ogreen opened 3 years ago

ogreen commented 3 years ago

Is your feature request related to a problem? Please describe. When using to_csv function for a string column, the csv writer automatically adds "quotation" signs to complete possibly missing signs. This can potentially add undesirable quotation marks. For example the string "abcd will be written in the CSV as """abcd"

Describe the solution you'd like Ideally, to_csv should duplicate the quotation functionality found in read_csv This documentation can be found in the following link.

quoting: str or int, default 0 Controls quoting behavior. Set to one of 0 (csv.QUOTE_MINIMAL), 1 (csv.QUOTE_ALL), 2 (csv.QUOTE_NONNUMERIC) or 3 (csv.QUOTE_NONE). Quoting is enabled with all values except 3.

CCing @vuule .

github-actions[bot] commented 3 years ago

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

github-actions[bot] commented 3 years ago

This issue has been labeled inactive-90d due to no recent activity in the past 90 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.