Python Library/Pandas
[Pandas] DataFrame Option
goatlab
2022. 8. 11. 19:48
728x90
반응형
SMALL
DataFrame Option
pandas에는 DataFrame의 디스플레이, 데이터 동작 등과 관련된 전역 동작을 구성하고 사용자 지정하는 옵션 API가 있다.
|
import pandas as pd
df = pd.read_csv("C:/Users/ex.csv", sep=";")
df
pd.set_option('display.max_row', 500) # 행 500개까지 출력
pd.set_option('display.max_columns', 100) # 열 100개까지 출력
df
https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html
Options and settings — pandas 1.4.3 documentation
Warning Enabling this option will affect the performance for printing of DataFrame and Series (about 2 times slower). Use only when it is actually required. Some East Asian countries use Unicode characters whose width corresponds to two Latin characters. I
pandas.pydata.org
728x90
반응형
LIST