如何在带有R内核的Jupyter笔记本中查看数据框的所有行?

时间:2017-04-13 04:35:35

标签: r jupyter-notebook

当我将一个数据框放入一个单元格时,它只显示了一些行,并带有" ..."在中间。

编辑:我正在寻找这些Python笔记本电话的R等价物:

import pandas
# "If max_cols is exceeded, switch to truncate view"
pandas.set_option('display.max_columns', 5400)
# "The maximum width in characters of a column"
pandas.set_option('display.max_colwidth', 500)

另见http://pandas.pydata.org/pandas-docs/stable/generated/pandas.set_option.html

1 个答案:

答案 0 :(得分:12)

Thomas Kluyver says

  

我认为你想要的选项是repr.matrix.max.rows和   repr.matrix.max.cols

     

即。运行

options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)
     

默认值为60和20。