Last active
April 7, 2020 12:13
-
-
Save pragatibaheti/25814f09b070987b4c3f5159f932d725 to your computer and use it in GitHub Desktop.
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
#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