简体   繁体   中英

How to display whole table in the output in Jupyter Notebook

After running my code in Jupyter Notebook to output a table which is really big, the middle part of the table was not displayed, it's showing as dots inbetween rows no. 4 and 79 (see attachment below). How do I get Jupyter Notebook to display the whole table? I am using Anaconda. Many thanks.

jupyter 表

You can add below two lines to see all the rows /columns

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM