본문 바로가기

AI/Pandas

[pandas] 출력 최대 row, col 설정


import pandas as pd

# 최대 줄 수 설정
pd.set_option('display.max_rows', 500)
# 최대 열 수 설정
pd.set_option('display.max_columns', 500)
# 표시할 가로의 길이
pd.set_option('display.width', 1000)
import pandas as pd

# 최대 줄 수 설정
pd.set_option('display.max_rows', 500)
# 최대 열 수 설정
pd.set_option('display.max_columns', 500)
# 표시할 가로의 길이
pd.set_option('display.width', 1000)

'AI > Pandas' 카테고리의 다른 글

[pandas] min, max  (0) 2021.05.12
[Pandas] dataframe, series  (0) 2021.05.12
[pandas] df.loc/ df.iloc  (0) 2021.02.13
[pandas] DataFrame에서 원하는 dtype컬럼만 가져오기  (0) 2021.02.13
[pandas] pd.get_dummies()  (0) 2021.02.12