MCPcopy
hub / github.com/pandas-dev/pandas / test_repr_unicode

Method test_repr_unicode

pandas/tests/frame/test_repr.py:230–241  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

228 repr(float_frame)
229
230 def test_repr_unicode(self):
231 uval = "\u03c3\u03c3\u03c3\u03c3"
232
233 df = DataFrame({"A": [uval, uval]})
234
235 result = repr(df)
236 ex_top = " A"
237 assert result.split("\n")[0].rstrip() == ex_top
238
239 df = DataFrame({"A": [uval, uval]})
240 result = repr(df)
241 assert result.split("\n")[0].rstrip() == ex_top
242
243 def test_unicode_string_with_unicode(self):
244 df = DataFrame({"A": ["\u05d0"]})

Callers

nothing calls this directly

Calls 3

DataFrameClass · 0.90
rstripMethod · 0.80
splitMethod · 0.80

Tested by

no test coverage detected