【问题标题】:How to display whole table in the output in Jupyter Notebook如何在 Jupyter Notebook 的输出中显示整个表格
【发布时间】:2020-01-26 22:10:23
【问题描述】:

在 Jupyter Notebook 中运行我的代码以输出一个非常大的表格后,表格的中间部分没有显示,它显示为行之间的点。 4 和 79(见下文附件)。如何让 Jupyter Notebook 显示整个表格?我正在使用蟒蛇。非常感谢。

【问题讨论】:

  • 如果你必须显示特定的列,那么你应该选择那些

标签: python jupyter-notebook


【解决方案1】:

您可以在下面添加两行以查看所有行/列

pd.set_option('display.max_columns', n) #replace n with the number of columns you want to see completely
pd.set_option('display.max_rows', n) #replace n with the number of rows you want to see completely

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-03-30
    • 1970-01-01
    • 2019-01-25
    • 1970-01-01
    • 2023-04-07
    相关资源
    最近更新 更多