Reputation: 235
i have the following column :
i want to remove the link and and any unnecessary symbols i've tried this :
def clean(col) :
col = re.sub("http\S*\s", "", col)
return col
PalEng["Content"] = PalEng["Content"].apply(str)
PalEng["Content"] = PalEng["Content"].apply(clean)
it worked for some rows , but the majority didn't change
Upvotes: -1
Views: 69