Skip to content

Commit 8c71949

Browse files
author
y-p
committed
Merge pull request #5925 from y-p/PR_rebase_ipython_directive
Rebase ipython_directive on top of recent ipython updated version
2 parents a37900e + 0543a21 commit 8c71949

File tree

2 files changed

+383
-279
lines changed

2 files changed

+383
-279
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)