Feature request: add additional flags to to_csv() function to avoid csv writer adding additional quotation marks
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**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](https://docs.rapids.ai/api/cudf/stable/api.html?highlight=read_csv#strings).
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 .
Contributor guide
Assessment
This issue has not been assessed yet.