Skip to content

Instantly share code, notes, and snippets.

@bigsnarfdude
Last active December 11, 2015 23:38
Show Gist options
  • Save bigsnarfdude/4677639 to your computer and use it in GitHub Desktop.
Save bigsnarfdude/4677639 to your computer and use it in GitHub Desktop.
stripping punctuation from strings function python
import string
def clean_data(data):
for char in string.punctuation:
data = data.replace(char, "")
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment