본문 바로가기
데이터분석/Pandas

데이터프레임 - 조건에 해당하는 위치의 값 변경

by Kc93 2024. 1. 25.
728x90
반응형
dataframe.loc[dataframe['컬럼1'] == 조건, '변경할컬럼'] = '변경값']
반응형

댓글