We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6645b2b commit fb6fbaeCopy full SHA for fb6fbae
pandas/io/tests/parser/common.py
@@ -1593,3 +1593,11 @@ def test_read_csv_utf_aliases(self):
1593
data = 'mb_num,multibyte\n4.8,test'.encode(encoding)
1594
result = self.read_csv(BytesIO(data), encoding=encoding)
1595
tm.assert_frame_equal(result, expected)
1596
+
1597
+ def test_internal_eof_byte(self):
1598
+ # see gh-5500
1599
+ data = "a,b\n1\x1a,2"
1600
1601
+ expected = pd.DataFrame([["1\x1a", 2]], columns=['a', 'b'])
1602
+ result = self.read_csv(StringIO(data))
1603
+ tm.assert_frame_equal(result, expected)
0 commit comments