9

当我将数据框放入单元格时,它只显示一些行,中间有一个“...”。

编辑:我正在寻找这些 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

4

1 回答 1

18

托马斯克鲁伊弗

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

即运行

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

默认值为 60 和 20。

于 2017-04-24T20:33:58.530 回答