데이터 과학데이터 전처리Python pandas 데이터 생성, 로딩과 저장, 색인 관리하는 법데이터 준비 1단계Last Updated 2024-08-26Published 2022-04-26pandas 사용법Python Pandas 기초8분목차생성하기(Creating)사전리스트배열Series로딩하고 저장하기(Loading and Saving)1) CSV 파일: read_csv / to_csv2) 엑셀 파일: read_excel / to_excel3) *.txt 파일: read_csv(sep=' ' or '\t')색인 관리하기(Managing index)1) 생성하기: Index2) 확인하기: index, columns3) 지정하기: set_index4) 정렬하기: sort_index5) 통합 색인명 부여하기: index.name, columns.name6) 색인명 변경하기: index.names, columns.names7) 계층 변경하기: swaplevel8) 재색인하기: reindex, rename, index.map9) 초기화하기: reset_index참고 문헌