Skip to content

Commit f010229

Browse files
committed
Merge pull request #8857 from graingert/patch-1
Clarify encoding kwarg on to_csv
2 parents 6fb9c04 + a084273 commit f010229

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None,
11371137
mode : str
11381138
Python write mode, default 'w'
11391139
encoding : string, optional
1140-
a string representing the encoding to use if the contents are
1141-
non-ascii, for python versions prior to 3
1140+
A string representing the encoding to use in the output file,
1141+
defaults to 'ascii' on Python 2 and 'utf-8' on Python 3.
11421142
line_terminator : string, default '\\n'
11431143
The newline character or character sequence to use in the output
11441144
file

0 commit comments

Comments
 (0)