Created
March 6, 2019 21:08
-
-
Save schaunwheeler/64a15a6c62c97288de88e90e6920120d to your computer and use it in GitHub Desktop.
Data science productionization: portability - example 1
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
stopchars = ['a', 'b', 'c', 'd'] | |
word = 'abracadabra' | |
word = word.strip().lower() | |
word = ''.join([char for char in word if char not in stops]) | |
word | |
> 'rr' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment