Skip to content

Commit 15a78cf

Browse files
author
y-p
committed
ENH: explicitly encode retval of SeriesFormatter.to_string() with console_encode()
1 parent 17d9c12 commit 15a78cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def to_string(self):
134134
if footer:
135135
result.append(footer)
136136

137-
return '\n'.join(result)
137+
return com.console_encode(u'\n'.join(result))
138138

139139
if py3compat.PY3: # pragma: no cover
140140
_encode_diff = lambda x: 0

0 commit comments

Comments
 (0)