Created
August 3, 2020 12:59
-
-
Save sid321axn/be0e4d9b503f78b0f550b9ce1af7cd9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
spec_chars = ["-","!",'"',"#","%","&","'","(",")", | |
"*","+",",","-",".","/",":",";","<", | |
"=",">","?","@","[","\\","]","^","_", | |
"`","{","|","}","~","–"] | |
for char in spec_chars: | |
df['title'] = df['title'].str.replace(char, '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment