+8
-0
lines changedFilter options
+8
-0
lines changed Original file line number Diff line number Diff line change
@@ -1593,3 +1593,11 @@ def test_read_csv_utf_aliases(self):
1593
1593
data = 'mb_num,multibyte\n4.8,test'.encode(encoding)
1594
1594
result = self.read_csv(BytesIO(data), encoding=encoding)
1595
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)
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4