replace function in dataframe

PHOTO EMBED

Wed Jul 14 2021 15:14:15 GMT+0000 (UTC)

Saved by @QuinnFox12 #textpreprocessing #nlp #pandas #function

for c in df_drop.columns:
    df_drop[c] = df_drop[c].str.replace('[^\w\s]+', '')
df_drop = df_drop.astype(str)
df_drop.head()
content_copyCOPY