def test_repr_non_interactive(self):
# in non interactive mode, there can be no dependency on the
# result of terminal auto size detection
df = DataFrame('hello', lrange(1000), lrange(5))
with option_context('mode.sim_interactive', False, 'display.width', 0,
'display.height', 0, 'display.max_rows', 5000):
self.assertFalse(has_truncated_repr(df))
self.assertFalse(has_expanded_repr(df))
test_format.py 文件源码
python
阅读 32
收藏 0
点赞 0
评论 0
评论列表
文章目录