[pandas] 데이터 프레임 모든 행,열 출력하기
alphabet = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'] num = range(300) df = pd.DataFrame({i:num for i in alphabet}) df 위 코드를 실행 시켜보면 위처럼 가운데가 생략되는데, 이때 # 방법1 pd.options.display.max_rows = None # 모든 행 출력 pd.options.display.max_columns = None # 모든 열 출력 # 방법2 pd.set_option('display.max_rows', None) # 모든 행 출력 pd...
2023. 4. 16.