Skip to content

Instantly share code, notes, and snippets.

@schaunwheeler
Created March 6, 2019 21:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schaunwheeler/64a15a6c62c97288de88e90e6920120d to your computer and use it in GitHub Desktop.
Save schaunwheeler/64a15a6c62c97288de88e90e6920120d to your computer and use it in GitHub Desktop.
Data science productionization: portability - example 1
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