728x90
반응형
dataframe.loc[dataframe['컬럼1'] == 조건, '변경할컬럼'] = '변경값']
반응형
'데이터분석 > Pandas' 카테고리의 다른 글
[Pandas] DataFrame 생략 없이 출력하기 (0) | 2024.03.21 |
---|---|
데이터 프레임 UTC에서 한국 시간으로 변경하기 - timedelta() (0) | 2024.01.25 |
데이터프레임 그룹바이 - groupby() (0) | 2024.01.25 |
데이터프레임 컬럼 타입 변경 - astype() (0) | 2024.01.25 |
데이터프레임 이너조인 - inner join (0) | 2024.01.24 |
댓글