当我将数据框放入单元格中时,它仅显示部分行,中间有一个“...”。
编辑:我正在寻找这些 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 .
最佳答案
托马斯·克鲁弗 says :
I think the options you want are repr.matrix.max.rows and repr.matrix.max.cols
i.e. run
options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)
The defaults are 60 and 20.
关于r - 如何在具有 R 内核的 Jupyter 笔记本中查看数据帧的所有行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43383591/