簡體   English   中英

如何在 Jupyter Notebook 的輸出中顯示整個表格

[英]How to display whole table in the output in Jupyter Notebook

在 Jupyter Notebook 中運行我的代碼以輸出一個非常大的表格后,表格的中間部分沒有顯示,它顯示為行之間的點。 4 和 79(見下面的附件)。 如何讓 Jupyter Notebook 顯示整個表格? 我正在使用蟒蛇。 非常感謝。

jupyter 表

您可以添加以下兩行以查看所有行/列

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM