Skip to content

Commit 3dbb9ea

Browse files
author
y-p
committed
BLD: make io.rst utf8-safe GH5142 GH5926
1 parent ce44442 commit 3dbb9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/io.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ result in byte strings being decoded to unicode in the result:
326326

327327
.. ipython:: python
328328
329-
data = 'word,length\nTr\xe4umen,7\nGr\xfc\xdfe,5'
329+
data = b'word,length\nTr\xc3\xa4umen,7\nGr\xc3\xbc\xc3\x9fe,5'.decode('utf8').encode('latin-1')
330330
df = pd.read_csv(StringIO(data), encoding='latin-1')
331331
df
332332
df['word'][1]

0 commit comments

Comments
 (0)