📌  相关文章
📜  python pandas 删除标点符号 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:16.036000             🧑  作者: Mango

代码示例2
# Define the function to remove the punctuation
def remove_punctuations(text):
    for punctuation in string.punctuation:
        text = text.replace(punctuation, '')
    return text
# Apply to the DF series
df['new_column'] = df['column'].apply(remove_punctuations)