File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -3650,9 +3650,14 @@ def to_csv(
3650
3650
sequence should be given if the object uses MultiIndex. If
3651
3651
False do not print fields for index names. Use index_label=False
3652
3652
for easier importing in R.
3653
- mode : str, default 'w'
3654
- Python write mode. The available write modes are the same as
3655
- :py:func:`open`.
3653
+ mode : {{'w', 'x', 'a'}}, default 'w'
3654
+ Forwarded to either `open(mode=)` or `fsspec.open(mode=)` to control
3655
+ the file opening. Typical values include:
3656
+
3657
+ - 'w', truncate the file first.
3658
+ - 'x', exclusive creation, failing if the file already exists.
3659
+ - 'a', append to the end of file if it exists.
3660
+
3656
3661
encoding : str, optional
3657
3662
A string representing the encoding to use in the output file,
3658
3663
defaults to 'utf-8'. `encoding` is not supported if `path_or_buf`
You can’t perform that action at this time.
0 commit comments