Created
January 18, 2019 05:45
-
-
Save MLWhiz/57c4b9d7d26f50c0209257ff28b399b0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| def clean_text(x): | |
| pattern = r'[^a-zA-z0-9\s]' | |
| text = re.sub(pattern, '', x) | |
| return x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment