A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/forking-repos/pandas/commit/8c4cf85943e647cbb8a0e081ad1e6277dbd309b9 below:

Add tests for internal EOF in read_csv · forking-repos/pandas@8c4cf85 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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