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

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

问题描述

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

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/稳定/options.html

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

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