之前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)
可以显示全部列。
或者还有一种方法可以显示所有列:
pd.options.display.max_columns = None
dataframe
Ref:
1、 https://pandas.pydata.org/pandas-docs/stable/options.html
2、 https://stackoverflow.com/questions/27163830/ipython-notebook-pandas-max-allowable-columns