Pandas 데이터프레임 컬럼명 변경 in python

horiz.d·2021년 12월 2일
0

https://mizykk.tistory.com/131



전체변경

df.columns = ['col', 'col', 'col']

선택변경

df.rename(columns={'Before':'After'})
profile
가용한 시간은 한정적이고, 배울건 넘쳐난다.

0개의 댓글