如何在 Jupyter Notebook 中显示更多行的 Dataframe?
How do I display more rows of a Dataframe in Jupyter Notebook?
目前我的笔记本显示的行如下
this。但是,我看到其他人的笔记本显示为
this,尽管我的最大行数设置为 60。
我需要做什么才能使 Jupyter Notebook 显示更多行?
这会有所帮助
pandas.set_option("display.max_rows", max_rows, "display.max_columns", max_cols)
此代码不适用于木星!!!
pd.set_option('display.max_rows', 500)
data1.sex
如果您想查看所有行:
pd.options.display.max_rows = None
data1.sex
如果您只想查看 60 行:
pd.set_option('display.max_rows', 60)
data1.sex.head(60)
目前我的笔记本显示的行如下 this。但是,我看到其他人的笔记本显示为 this,尽管我的最大行数设置为 60。
我需要做什么才能使 Jupyter Notebook 显示更多行?
这会有所帮助
pandas.set_option("display.max_rows", max_rows, "display.max_columns", max_cols)
此代码不适用于木星!!!
pd.set_option('display.max_rows', 500)
data1.sex
如果您想查看所有行:
pd.options.display.max_rows = None
data1.sex
如果您只想查看 60 行:
pd.set_option('display.max_rows', 60)
data1.sex.head(60)