@@ -3040,7 +3040,6 @@ def to_csv(
30403040 index_label : Optional [Union [bool_t , str , Sequence [Label ]]] = None ,
30413041 mode : str = "w" ,
30423042 encoding : Optional [str ] = None ,
3043- errors : str = "strict" ,
30443043 compression : Optional [Union [str , Mapping [str , str ]]] = "infer" ,
30453044 quoting : Optional [int ] = None ,
30463045 quotechar : str = '"' ,
@@ -3050,6 +3049,7 @@ def to_csv(
30503049 doublequote : bool_t = True ,
30513050 escapechar : Optional [str ] = None ,
30523051 decimal : Optional [str ] = "." ,
3052+ errors : str = "strict" ,
30533053 ) -> Optional [str ]:
30543054 r"""
30553055 Write object to a comma-separated values (csv) file.
@@ -3097,12 +3097,6 @@ def to_csv(
30973097 encoding : str, optional
30983098 A string representing the encoding to use in the output file,
30993099 defaults to 'utf-8'.
3100- errors : str, default 'strict'
3101- Specifies how encoding and decoding errors are to be handled.
3102- See the errors argument for :func:`open` for a full list
3103- of options.
3104-
3105- .. versionadded:: 1.1.0
31063100 compression : str or dict, default 'infer'
31073101 If str, represents compression mode. If dict, value at 'method' is
31083102 the compression mode. Compression mode may be any of the following
@@ -3150,6 +3144,12 @@ def to_csv(
31503144 decimal : str, default '.'
31513145 Character recognized as decimal separator. E.g. use ',' for
31523146 European data.
3147+ errors : str, default 'strict'
3148+ Specifies how encoding and decoding errors are to be handled.
3149+ See the errors argument for :func:`open` for a full list
3150+ of options.
3151+
3152+ .. versionadded:: 1.1.0
31533153
31543154 Returns
31553155 -------
0 commit comments