关闭 Jupyter Notebook 输出中的缩写?

Rac*_*hel 3 markdown python-3.x output jupyter-notebook

我对使用 Jupyter 很陌生。我在 Jupyter 中遇到了一个相当烦人的小东西:缩写。我有一个相当大但不是很大的熊猫数据框。我想对缺失的结构有所了解。但是,运行会df_total.isnull().sum()返回一个缩写为...(见下文)的列表。

roe_before_tax_1               1101
roe_before_tax_2               1165
roce_before_tax_0              1009
roce_before_tax_1              1050
roce_before_tax_2              1115
                               ... 
revenue_by_fte_2                689
personell_cost_by_revenue_0    1144
personell_cost_by_revenue_1    1187
personell_cost_by_revenue_2    1271
Run Code Online (Sandbox Code Playgroud)

有没有办法摆脱它并看到完整的输出?谢谢!/R

Lou*_*ies 5

使用pd.options.display.max_rows = 2000(或pd.set_option("max_rows",2000)- 使用您喜欢的任何一种!)将 2000 替换为大于您要显示的行数的某个数字。

max_columns如果您遇到与列相同的问题,还有另一种选择