랭귀지/pandas

None type replace

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