데이터프레임 괄호 안 내용 삭제

화이팅·2023년 4월 9일
0

df_target['지하철역']=df_target['지하철역'].str.replace(r"(.*)","")

import re

for i in list:
i=re.sub(pattern=r'([^)]*)', repl='', string=i)
print(i)
list

출처 : https://blog.naver.com/PostView.nhn?blogId=wideeyed&logNo=221347960543

profile
하하...하.

0개의 댓글