@@ -3028,7 +3028,6 @@ def to_csv(
3028
3028
index_label : Optional [Union [bool_t , str , Sequence [Label ]]] = None ,
3029
3029
mode : str = "w" ,
3030
3030
encoding : Optional [str ] = None ,
3031
- errors : str = "strict" ,
3032
3031
compression : Optional [Union [str , Mapping [str , str ]]] = "infer" ,
3033
3032
quoting : Optional [int ] = None ,
3034
3033
quotechar : str = '"' ,
@@ -3038,6 +3037,7 @@ def to_csv(
3038
3037
doublequote : bool_t = True ,
3039
3038
escapechar : Optional [str ] = None ,
3040
3039
decimal : Optional [str ] = "." ,
3040
+ errors : str = "strict" ,
3041
3041
) -> Optional [str ]:
3042
3042
r"""
3043
3043
Write object to a comma-separated values (csv) file.
@@ -3085,12 +3085,6 @@ def to_csv(
3085
3085
encoding : str, optional
3086
3086
A string representing the encoding to use in the output file,
3087
3087
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
3094
3088
compression : str or dict, default 'infer'
3095
3089
If str, represents compression mode. If dict, value at 'method' is
3096
3090
the compression mode. Compression mode may be any of the following
@@ -3131,6 +3125,12 @@ def to_csv(
3131
3125
decimal : str, default '.'
3132
3126
Character recognized as decimal separator. E.g. use ',' for
3133
3127
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
3134
3134
3135
3135
Returns
3136
3136
-------
0 commit comments