[英]Pandas DataFrame Display in Jupyter Notebook
I want to make my display tables bigger so users can see the tables better when that are used in conjunction with Jupyter RISE (slide shows). 我想将显示表格做得更大,以便与Jupyter RISE(幻灯片显示)结合使用时,用户可以更好地查看表格。
How do I do that? 我怎么做? I don't need to show more columns, but rather I want the table to fill up the whole width of the Jupyter RISE slide.
我不需要显示更多的列,而是希望表格填充Jupyter RISE幻灯片的整个宽度。
Any idea on how to do that? 关于如何做到这一点的任何想法?
Thanks 谢谢
If df
is a pandas.DataFrame
object. 如果
df
是pandas.DataFrame
对象。
You can do: 你可以做:
df.style.set_properties(**{'max-width': '200px', 'font-size': '15pt'})
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.