@@ -3028,7 +3028,6 @@ def to_csv(
30283028 index_label : Optional [Union [bool_t , str , Sequence [Label ]]] = None ,
30293029 mode : str = "w" ,
30303030 encoding : Optional [str ] = None ,
3031- errors : str = "strict" ,
30323031 compression : Optional [Union [str , Mapping [str , str ]]] = "infer" ,
30333032 quoting : Optional [int ] = None ,
30343033 quotechar : str = '"' ,
@@ -3038,6 +3037,7 @@ def to_csv(
30383037 doublequote : bool_t = True ,
30393038 escapechar : Optional [str ] = None ,
30403039 decimal : Optional [str ] = "." ,
3040+ errors : str = "strict" ,
30413041 ) -> Optional [str ]:
30423042 r"""
30433043 Write object to a comma-separated values (csv) file.
@@ -3085,12 +3085,6 @@ def to_csv(
30853085 encoding : str, optional
30863086 A string representing the encoding to use in the output file,
30873087 defaults to 'utf-8'.
3088- errors : str, default 'strict'
3089- Specifies how encoding and decoding errors are to be handled.
3090- See the errors argument for :func:`open` for a full list
3091- of options.
3092-
3093- .. versionadded:: 1.1.0
30943088 compression : str or dict, default 'infer'
30953089 If str, represents compression mode. If dict, value at 'method' is
30963090 the compression mode. Compression mode may be any of the following
@@ -3131,6 +3125,12 @@ def to_csv(
31313125 decimal : str, default '.'
31323126 Character recognized as decimal separator. E.g. use ',' for
31333127 European data.
3128+ errors : str, default 'strict'
3129+ Specifies how encoding and decoding errors are to be handled.
3130+ See the errors argument for :func:`open` for a full list
3131+ of options.
3132+
3133+ .. versionadded:: 1.1.0
31343134
31353135 Returns
31363136 -------
0 commit comments