We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de3d0a1 commit b668c64Copy full SHA for b668c64
pandas/tests/test_frame.py
@@ -3851,6 +3851,16 @@ def test_to_csv_line_terminators(self):
3851
'three,3,6\r\n')
3852
self.assertEqual(buf.getvalue(), expected)
3853
3854
+ buf = StringIO()
3855
+ df.to_csv(buf) # The default line terminator remains \n
3856
+ expected = ('A,B\n'
3857
+ 'one,1,4\n'
3858
+ 'two,2,5\n'
3859
+ 'three,3,6\n')
3860
+ self.assertEqual(buf.getvalue(), expected)
3861
+
3862
3863
3864
3865
def test_to_excel_from_excel(self):
3866
try:
0 commit comments