Skip to content

Instantly share code, notes, and snippets.

# coding: utf-8
# # Creating Word Clouds: Normal and Shaped
# First we have to install the wordcloud package we'll be using. We're using Andreas Mueller's project (2012, https://github.com/amueller/word_cloud) available on Github. Other code we utilised/adapted in this notebook will be referenced at the appropriate times, but includes Duong Vu (2018, https://www.datacamp.com/community/tutorials/wordcloud-python) and Imran Mannan (2017, https://qm2allstars.wordpress.com/blog/making-a-twitter-word-cloud/).
# A note: some of our twitter data was further cleaned after this notebook was made - to drop foreign language tweets - and a new notebook made, cloned from this one, to use this clean data. However to save wasting time copying and pasting all the markdown we have used this notebook to explain our methodology instead as none of the methodology changed, simply some of the data which we ran through! As such, some of the visualisations will be slightly different to those displayed in the final visualisations
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.