[Python] pandas로 엑셀 읽고 저장하기


[Python] pandas로 엑셀 읽고 저장하기

본 포스팅에서는 python으로 엑셀을 읽는 법과 저장하는 법에 대해 얘기하고자 한다. pandas.read 다음과 같이 name, dcm_paths, label_paths, dcm_extentions, label_extentions의 열들을 가지는 xlsx 파일을 읽어보자. pandas는 보통 pd로 줄여서 통용된다. "pd.read_excel('엑셀파일명')"을 사용하면 쉽게 파일을 읽을 수 있다. import pandas as pd excel_path = './annotation.xlsx' df = pd.read_excel(excel_path) df 위 예제와 같이 pd.read_excel로 읽어들이면 DataFrame 형태로 반환해 주는데 여기서 DataFrame이란 pandas에서 제공해주는 데..


원문링크 : [Python] pandas로 엑셀 읽고 저장하기