Last active
June 10, 2021 03:32
-
-
Save Nithilaa/16615aec5f12b36897ea363d6e59d619 to your computer and use it in GitHub Desktop.
Remove all punctuations and Unicode
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
%time df2['Review_Processed'] = df2['Review_Processed'].map(lambda x : re.sub(r'[^\x00-\x7F]+',' ', x)) | |
%time df2['Review_Processed'] = df2['Review_Processed'].map(lambda x: re.sub(r'[^\w\s]', '', x)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment