我对使用 Jupyter 还很陌生。我在 Jupyter 中遇到了一件相当烦人的小事:缩写。我有一个相当大 - 但不是很大 - Pandas 数据框。我想对缺失的结构有一些了解。但是,运行 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
有没有办法摆脱它并看到完整的输出?谢谢!/R
最佳答案
使用 pd.options.display.max_rows = 2000
(或 pd.set_option("max_rows",2000)
- 使用您喜欢的任何一个!)用 2000 代替一些数字大于您要显示的行数。
如果您遇到与列相同的问题,还有另一个选项 max_columns
关于python-3.x - 关闭 Jupyter Notebook 输出中的缩写?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45214968/