오류
[오류 해결] FutureWarning: The default value of regex will change from True to False in a future version.
Leunco
2022. 6. 10. 13:59
수정 전
df['comment'] = df['comment'].str.replace('\(.+?!^♡~\)', '')
수정 후
df['comment'] = df['comment'].str.replace('\(.+?!^♡~\)', '',regex=True)
참고 : https://needneo.tistory.com/164
The default value of regex will change from True to False in a future version.
Warning FutureWarning: The default value of regex will change from True to False in a future version. 정규표현식을 사용하는 구분에서 위와 같은 Warning이 떴다. 실행이 안되는 것은 아니고, 경고 메세지..
needneo.tistory.com
반응형