@@ -3035,7 +3035,6 @@ def to_csv(
30353035 index_label : Optional [Union [bool_t , str , Sequence [Label ]]] = None ,
30363036 mode : str = "w" ,
30373037 encoding : Optional [str ] = None ,
3038- errors : str = "strict" ,
30393038 compression : Optional [Union [str , Mapping [str , str ]]] = "infer" ,
30403039 quoting : Optional [int ] = None ,
30413040 quotechar : str = '"' ,
@@ -3045,6 +3044,7 @@ def to_csv(
30453044 doublequote : bool_t = True ,
30463045 escapechar : Optional [str ] = None ,
30473046 decimal : Optional [str ] = "." ,
3047+ errors : str = "strict" ,
30483048 ) -> Optional [str ]:
30493049 r"""
30503050 Write object to a comma-separated values (csv) file.
@@ -3092,12 +3092,6 @@ def to_csv(
30923092 encoding : str, optional
30933093 A string representing the encoding to use in the output file,
30943094 defaults to 'utf-8'.
3095- errors : str, default 'strict'
3096- Specifies how encoding and decoding errors are to be handled.
3097- See the errors argument for :func:`open` for a full list
3098- of options.
3099-
3100- .. versionadded:: 1.1.0
31013095 compression : str or dict, default 'infer'
31023096 If str, represents compression mode. If dict, value at 'method' is
31033097 the compression mode. Compression mode may be any of the following
@@ -3145,6 +3139,12 @@ def to_csv(
31453139 decimal : str, default '.'
31463140 Character recognized as decimal separator. E.g. use ',' for
31473141 European data.
3142+ errors : str, default 'strict'
3143+ Specifies how encoding and decoding errors are to be handled.
3144+ See the errors argument for :func:`open` for a full list
3145+ of options.
3146+
3147+ .. versionadded:: 1.1.0
31483148
31493149 Returns
31503150 -------
0 commit comments