본문 바로가기

언어 꿀Tip/Python 꿀tip!

07_01_22. 데이터프레임 특정 컬럼 결측치 채우기

## 결측치 채우기

# 결측치 0 으로 채우기
df_sub_02["max_prmt"].fillna(0, inplace=True)

# 결측치 문자열로 채우기
df_sub_02["max_prmt"].fillna("no_prmt", inplace=True)