dfr*_*kow 5 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)
Run Code Online (Sandbox Code Playgroud)
另见http://pandas.pydata.org/pandas-docs/stable/generated/pandas.set_option.html.
dfr*_*kow 14
Thomas Kluyver 说:
我认为你想要的选项是repr.matrix.max.rows和repr.matrix.max.cols
即运行
Run Code Online (Sandbox Code Playgroud)options(repr.matrix.max.rows=600, repr.matrix.max.cols=200)
默认值为60和20.
归档时间: |
|
查看次数: |
5459 次 |
最近记录: |