Skip to content

Commit 02b57a8

Browse files
committed
TST: unit test to reproduce #2599 on some platforms
1 parent ab62d91 commit 02b57a8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pandas/io/tests/test_parsers.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,6 +1511,15 @@ def test_integer_overflow_bug(self):
15111511
result = self.read_csv(StringIO(data), header=None, sep='\s+')
15121512
self.assertTrue(result[0].dtype == np.float64)
15131513

1514+
def test_int64_min_issues(self):
1515+
# #2599
1516+
data = 'A,B\n0,0\n0,'
1517+
1518+
result = self.read_csv(StringIO(data))
1519+
expected = DataFrame({'A': [0, 0], 'B': [0, np.nan]})
1520+
1521+
tm.assert_frame_equal(result, expected)
1522+
15141523

15151524
class TestPythonParser(ParserTests, unittest.TestCase):
15161525

0 commit comments

Comments
 (0)