为什么我看不到Jupyter笔记本中的所有列?

时间:2019-06-21 09:03:34

标签: python-3.x pandas jupyter-notebook jupyter-lab

我正在 Jupyter Lab 0.35.5 中显示一个熊猫df,

pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)` 

但是我看不到右边的列,没有滚动条(参见图片)。如何显示它们?

TIA!

enter image description here

1 个答案:

答案 0 :(得分:0)

尝试

import pandas as pd
from IPython.display import display

pd.options.display.max_columns = None
display(data)

要启用滚动:

You can try Cell -> Current Outputs -> Toggle Scrolling in the Jupyter UI to enable the scrolling for the output of one cell.