아미(아름다운미소)

None type replace 본문

랭귀지/pandas

None type replace

유키공 2025. 6. 23. 13:49
if text is not None:
    text = text.replace("a", "b")
else:
    text = ""  # 또는 기본값 설정

'랭귀지 > pandas' 카테고리의 다른 글

화면보호기  (0) 2025.06.13
np.select 멀티프로세싱 적용  (0) 2025.06.12
Type 변경  (0) 2025.06.09
join  (0) 2025.06.02
merge  (0) 2025.05.28
Comments