我正在 Jupyter Lab 0.35.5 中显示一个熊猫df,
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)`
但是我看不到右边的列,没有滚动条(参见图片)。如何显示它们?
TIA!
答案 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.