Skip to content

Commit 695aa06

Browse files
author
y-p
committed
DOC: add note about formatters needing to return unicode (if returning strings)
we need to keep everything unicode at the bottom levels, so that we can combine strings with other unicode strings at the I/O choke-points, otherwise python tries to coerce bytestring into unicode using 'ascii' encoding, and we get UnicodeDecodeError DOC: add note about formatters needing to return unicode )if returning strings) we need to keep everything unicode at the bottom levels, so that we can combine strings with other unicode strings at the I/O choke-points, otherwise python tries to coerce bytestring into unicode using 'ascii' encoding, and we get UnicodeDecodeError
1 parent a34ac81 commit 695aa06

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
@@ -36,7 +36,7 @@
3636
string representation of NAN to use, default 'NaN'
3737
formatters : list or dict of one-parameter functions, optional
3838
formatter functions to apply to columns' elements by position or name,
39-
default None
39+
default None, if the result is a string , it must be a unicode string.
4040
float_format : one-parameter function, optional
4141
formatter function to apply to columns' elements if they are floats
4242
default None

0 commit comments

Comments
 (0)