jorisvandenbossche commented on code in PR #14722:
URL: https://github.com/apache/arrow/pull/14722#discussion_r1037939163
##########
python/pyarrow/_csv.pyx:
##########
@@ -1288,20 +1312,30 @@ cdef class WriteOptions(_Weakrefable):
CSV data
delimiter : 1-character string, optional (default ",")
The character delimiting individual cells in the CSV data.
+ quoting_style : str, optional (default "needed")
+ Whether to quote values, and if so, which quoting style to use.
+ The following values are accepted:
+ - "needed" (default): only enclose values in quotes when needed.
Review Comment:
```suggestion
The following values are accepted:
- "needed" (default): only enclose values in quotes when needed.
```
(small formatting nit, but I _think_ this is needed for it to render
correctly in the html version, restructured text typically needs a blank line
before a list)
##########
python/pyarrow/_csv.pyx:
##########
@@ -1337,6 +1371,23 @@ cdef class WriteOptions(_Weakrefable):
def delimiter(self, value):
deref(self.options).delimiter = _single_char(value)
+ @property
+ def quoting_style(self):
+ """
+ Whether to quote values, and if so, which quoting style to use.
+ The following values are accepted:
+ - "needed" (default): only enclose values in quotes when needed.
Review Comment:
```suggestion
The following values are accepted:
- "needed" (default): only enclose values in quotes when needed.
```
same here
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]