IPython Notebook输出单元格正在截断列表中的内容 [英] IPython Notebook output cell is truncating contents of my list

查看:108
本文介绍了IPython Notebook输出单元格正在截断列表中的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个很长的列表(大约4000个项目),当我尝试在ipython笔记本输出单元格中显示它时,其内容被抑制。可能会显示三分之二,但结尾有一个......,而不是列表中的所有内容。如何让ipython笔记本显示整个列表而不是截止版本?

I have a long list (about 4000 items) whose content is suppressed when I try to display it in an ipython notebook output cell. Maybe two-thirds is shown, but the end has a "...]", rather than all the contents of the list. How do I get ipython notebook to display the whole list instead of a cutoff version?

推荐答案

pd.options.display.max_rows = 4000

为我工作

请参阅: http://pandas.pydata.org/ pandas-docs / stable / options.html

这篇关于IPython Notebook输出单元格正在截断列表中的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆