Skip to content

Instantly share code, notes, and snippets.

@pragatibaheti
Last active April 7, 2020 12:13
Show Gist options
  • Save pragatibaheti/25814f09b070987b4c3f5159f932d725 to your computer and use it in GitHub Desktop.
Save pragatibaheti/25814f09b070987b4c3f5159f932d725 to your computer and use it in GitHub Desktop.
#checking if all packages are installed after importing
print('Python: {}'.format(sys.version))
print('NLTK: {}'.format(nltk.__version__))
print('Scikit-learn: {}'.format(sklearn.__version__))
print('Pandas: {}'.format(pd.__version__))
print('Numpy: {}'.format(np.__version__))
# load the dataset of SMS messages
df = pd.read_csv('spam.csv', header=None, encoding= "ISO-8859-1")
df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment