Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3300,7 +3300,7 @@ def to_csv(
header: bool_t | list[str] = True,
index: bool_t = True,
index_label: IndexLabel | None = None,
mode: str = "w",
mode: str = "a",
encoding: str | None = None,
compression: CompressionOptions = "infer",
quoting: int | None = None,
Expand Down Expand Up @@ -3349,8 +3349,11 @@ def to_csv(
sequence should be given if the object uses MultiIndex. If
False do not print fields for index names. Use index_label=False
for easier importing in R.
mode : str
Python write mode, default 'w'.
mode : str, default 'w'
String character(s) to indicate the mode in which the file is opened for writing. Valid
values include: 'w' for "write" access, 'w+' or 'r+' for read and write access, 'x' or 'x+' for
exclusive creation access, and 'a' or 'a+' for append access. All strings have an implied 't'
for text access; binary access is not permitted.
encoding : str, optional
A string representing the encoding to use in the output file,
defaults to 'utf-8'. `encoding` is not supported if `path_or_buf`
Expand Down