我很擅长使用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
有没有办法摆脱它并看到完整的输出?谢谢! / R
答案 0 :(得分:4)
使用require('@google-cloud/bigquery')()
(或pd.options.display.max_rows = 2000
- 根据您的喜好使用!)将2000替换为大于您想要显示的行数的数字。
如果您遇到与列相同的问题
,还有另一个选项pd.set_option("max_rows",2000)
答案 1 :(得分:0)
不幸的是,当时Jupyter是不可能的。遗憾!