LoginSignup
1
4

More than 3 years have passed since last update.

pandasのデータフレーム等、表示範囲を変更するメモ

Last updated at Posted at 2018-10-06

参考

こちらのデータ分析方法が参考になりました!

方法

# 最大表示範囲を確認
pd.get_option("display.max_columns")
pd.get_option("display.max_rows")

# 表示範囲を指定(お好みで数値を設定)
pd.set_option("display.max_columns",50)
pd.set_option("display.max_rows",50)
# その他のオプション
dir(pd.options.display)

#実行結果
['chop_threshold',
 'colheader_justify',
 'column_space',
 'date_dayfirst',
 'date_yearfirst',
 'encoding',
 'expand_frame_repr',
 'float_format',
 'height',
 'html',
 'large_repr',
 'latex',
 'line_width',
 'max_categories',
 'max_columns',
 'max_colwidth',
 'max_info_columns',
 'max_info_rows',
 'max_rows',
 'max_seq_items',
 'memory_usage',
 'multi_sparse',
 'notebook_repr_html',
 'pprint_nest_depth',
 'precision',
 'show_dimensions',
 'unicode',
 'width']
1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4