diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1f524d07bfd3a..2fc137a85daaf 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3349,8 +3349,9 @@ 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' + Python write mode. The available write modes are the same as + :py:func:`open`. 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`