jupyter notebook显示全部列

之前jupyter显示行数太少,参考[1],可以通过

pd.set_option('max_rows', 5)

设定,设定全部列的时候也想,

pd.set_option('max_columns', 5)

来设定,too young too simple。
别忘了google大法,参考[2],通过以下设定:

pd.set_option('display.max_columns', None)
from IPython.display import display
display(dt)

可以显示全部列。
Ref:
1、 https://pandas.pydata.org/pandas-docs/stable/options.html
2、 https://stackoverflow.com/questions/27163830/ipython-notebook-pandas-max-allowable-columns

猜你喜欢

转载自blog.csdn.net/woai8339/article/details/81505905
今日推荐