2020
09-27
09-27
设置jupyter中DataFrame的显示限制方式
jupyter中显示的DataFrame过长时会自动换行(print()显示方式)或自动省略(单元格最后一行直接显示),在一些情况下看上去不是很方便,可调节显示参数如下:importpandasaspdpd.set_option('display.width',500)#设置整体宽度pd.set_option('display.height',500)#设置整体高度pd.set_option('display.max_rows',100)#设置最大行数pd.set_option('display.max_columns',100)#设置最大列数补充知识:pandas中关...
继续阅读 >