Pandas DataFrame表垂直滚动条

时间:2017-03-10 17:28:24

标签: python pandas jupyter-notebook

我有一个大的(垂直)pandas数据框,我希望将其显示为带有滚动条的漂亮表。我可以让它显示包含所有行的表,但我无法显示滚动条。

def data(x):
    strData = strData[['Data1','Data2','Data3']]
    display(strData)

输出:没有垂直滚动条

enter image description here

1 个答案:

答案 0 :(得分:3)

不确定这是不是你的意思,但我想你需要将max_rows选项设置为None,这样pandas不会对显示的行数设置限制:

pd.set_option("display.max_rows", None)

enter image description here

更新

enter image description here

相关问题