2
0

More than 3 years have passed since last update.

python(pandas)にて省略せずに表示させる対応策メモ【初心者】

Posted at

Python初心者の私が躓いたポイントを備忘録としてまとめていきます。

Pandasライブラリを使ってcsvを読み込み・表示させる場合がよくありますが、
長すぎると表示が省略されてしまいます。

これだとデータの中身をチェックできないので、省略を解除しすべて表示させることが
重要です。

この方法は以下の通り。

行方向にて省略させずにすべて表示するには以下のコードでOK。

python
pd.set_option("display.max_columns",99999)

同様に行方向にて省略させずにすべて表示するには以下のコード。

python
pd.set_option("display.max_rows",99999)

この時元のデータよりも上で入力した数の方が
大きくないと解除されなかったので注意が必要

参考サイト

2
0
1

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
2
0