10BC0 Unicode : change df.to_string() and friends to always return unicode objects · Pull Request #2224 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content
Merged
Next Next commit
TST: series tidy_repr with unicode data values
  • Loading branch information
y-p committed Nov 22, 2012
commit ac0898f08890dafb9a9e5cbc9515e15112616d53
5 changes: 5 additions & 0 deletions pandas/tests/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,11 @@ def test_repr(self):
rep_str = repr(ser)
self.assert_("Name: 0" in rep_str)

def test_tidy_repr(self):
a=Series([u"\u05d0"]*1000)
a.name= 'title1'
repr(a) # should not raise exception

def test_repr_bool_fails(self):
s = Series([DataFrame(np.random.randn(2,2)) for i in range(5)])

Expand Down
0