如何在带有R内核的Jupyter笔记本中查看数据帧的所有行? [英] How to see all rows of a data frame in a Jupyter notebook with an R kernel?
本文介绍了如何在带有R内核的Jupyter笔记本中查看数据帧的所有行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我将数据框放入单元格时,它仅显示一些行,中间是一个"...".
When I put a data frame into a cell, it shows only some of the rows, with a "..." in the middle.
编辑:我正在寻找这些Python笔记本调用的R等效项:
Edit: I'm looking for R equivalents of these Python notebook calls:
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 .
推荐答案
Thomas Kluyver 说:
Thomas Kluyver says:
我认为您想要的选项是repr.matrix.max.rows和 repr.matrix.max.cols
I think the options you want are repr.matrix.max.rows and repr.matrix.max.cols
即运行
options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)
默认值为60和20.
这篇关于如何在带有R内核的Jupyter笔记本中查看数据帧的所有行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文