File tree 2 files changed +2
-3
lines changed
2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -288,8 +288,7 @@ def to_string(self):
288
288
if self .index :
289
289
result = self .adj .adjoin (3 , * [fmt_index [1 :], fmt_values ])
290
290
else :
291
- result = self .adj .adjoin (3 , fmt_values ).replace ('\n ' ,
292
- '\n ' ).strip ()
291
+ result = self .adj .adjoin (3 , fmt_values )
293
292
294
293
if self .header and have_header :
295
294
result = fmt_index [0 ] + '\n ' + result
Original file line number Diff line number Diff line change @@ -1835,7 +1835,7 @@ def test_to_string_without_index(self):
1835
1835
# GH 11729 Test index=False option
1836
1836
s = Series ([1 , 2 , 3 , 4 ])
1837
1837
result = s .to_string (index = False )
1838
- expected = (u ('1\n ' ) + '2\n ' + '3\n ' + '4' )
1838
+ expected = (u (' 1\n ' ) + ' 2\n ' + ' 3\n ' + ' 4' )
1839
1839
assert result == expected
1840
1840
1841
1841
def test_unicode_name_in_footer (self ):
You can’t perform that action at this time.
0 commit comments