From a084273b1bdba95332d23cac0a316b25169ab1e1 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Wed, 19 Nov 2014 16:04:17 +0000 Subject: [PATCH] Clarify encoding kwarg on to_csv --- pandas/core/frame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0ea53920ffe3c..237012a71aeb4 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -1137,8 +1137,8 @@ def to_csv(self, path_or_buf=None, sep=",", na_rep='', float_format=None, mode : str Python write mode, default 'w' encoding : string, optional - a string representing the encoding to use if the contents are - non-ascii, for python versions prior to 3 + A string representing the encoding to use in the output file, + defaults to 'ascii' on Python 2 and 'utf-8' on Python 3. line_terminator : string, default '\\n' The newline character or character sequence to use in the output file