Dataframe 显示和样式-限制大小

Dataframe 显示和样式-限制大小,dataframe,jupyter,display,styling,Dataframe,Jupyter,Display,Styling,我尝试用样式显示一个数据帧,但是当我在Jpuyter Lab中显示这个数据帧时,当我在dataframe Jupyter display all dataframe上使用样式时,我希望只显示前10个和前10个。有可能吗 pd.set_option('display.max_colwidth', 10) pd.set_option('display.max_rows', 10) dfStyler = aa.style.set_properties(subset=aa.columns,**{'te

我尝试用样式显示一个数据帧,但是当我在Jpuyter Lab中显示这个数据帧时,当我在dataframe Jupyter display all dataframe上使用样式时,我希望只显示前10个和前10个。有可能吗

pd.set_option('display.max_colwidth', 10)
pd.set_option('display.max_rows', 10)

dfStyler = aa.style.set_properties(subset=aa.columns,**{'text-align': 'center', 'width': '230px',
    'max-width': '230px'})
display(dfStyler)
显示带有样式的数据帧

显示不带样式的数据帧