.rename(index={'기존 인덱스' : '변경명'}) : 기존에 있는 인덱스명을 변경
.rename(columns={'기존 컬럼' : '변경명'}) : 기존에 있는 컬럼명을 변경
'Python > Pandas' 카테고리의 다른 글
[Python] Pandas DataFrame 행, 열 삭제 drop() (0) | 2024.04.11 |
---|---|
[Python]Pandas xls 파일 불러오기 pd.read.excel() (0) | 2024.04.11 |
[Python] Pandas DataFrame 정렬 sort_values(), sort_index() (0) | 2024.04.11 |
[Python] Pandas DataFrame 합치기 pd.concat(), pd.merge() (0) | 2024.04.08 |
[Python] Pandas DataFrame 데이터 확인하기 head(), tail(), shape, describe(), info() (0) | 2024.04.08 |