HyukjinKwon commented on a change in pull request #33414:
URL: https://github.com/apache/spark/pull/33414#discussion_r672196465
##########
File path: python/pyspark/pandas/generic.py
##########
@@ -688,14 +689,16 @@ def to_csv(
when appropriate.
num_files : the number of files to be written in `path` directory when
this is a path.
- mode : str {'append', 'overwrite', 'ignore', 'error', 'errorifexists'},
- default 'overwrite'. Specifies the behavior of the save operation
when the
- destination exists already.
+ mode : str
+ Python write mode, default 'w'.
- - 'append': Append the new data to existing data.
- - 'overwrite': Overwrite existing data.
- - 'ignore': Silently ignore this operation if data already exists.
- - 'error' or 'errorifexists': Throw an exception if data already
exists.
+ .. note:: mode can accept the strings for Spark writing mode.
+ Such as 'append', 'overwrite', 'ignore', 'error',
'errorifexists'.
Review comment:
```suggestion
.. note:: mode can accept the strings for Spark writing mode
such as 'append', 'overwrite', 'ignore', 'error',
'errorifexists'.
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]