We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
numfocus
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent b848894 commit b91b645Copy full SHA for b91b645
pandas/tests/test_frame.py
@@ -1866,6 +1866,18 @@ def test_to_string_with_formatters_unicode(self):
1866
(' c/\xcf\x83\n0 1 \n1 2 \n2 3 ', cp437,
1867
' c/?\n0 1 \n1 2 \n2 3 ' ))
1868
1869
+ def test_to_string_buffer_all_unicode(self):
1870
+ buf = StringIO()
1871
+
1872
+ empty = DataFrame({u'c/\u03c3':Series()})
1873
+ nonempty = DataFrame({u'c/\u03c3':Series([1,2,3])})
1874
1875
+ print >>buf, empty
1876
+ print >>buf, nonempty
1877
1878
+ # this should work
1879
+ ''.join(buf.buflist)
1880
1881
def test_head_tail(self):
1882
assert_frame_equal(self.frame.head(), self.frame[:5])
1883
assert_frame_equal(self.frame.tail(), self.frame[-5:])
0 commit comments