The data contains two columns namely 'Review' and 'Liked'. Now, let us read the data as a dataframe using pandasĭf = pd.read_csv('Restaurant_Reviews.tsv', sep=' ')
To begin with, we will firstly have to import the necessary libraries.įrom wordcloud import WordCloud, STOPWORDS In this tutorial, we will be using the Restaurant reviews data from kaggle. They are numpy (for array manipulation), pillow (for image handling), matplotlib (for generating plots) and finally wordcloud (for generating wordclouds). In order to work with wordclouds in python, we will first have to install a few libraries using pip. Wordcloud is basically a visualization technique to represent the frequency of words in a text where the size of the word represents its frequency. In this tutorial, let us understand how to generate wordclouds in python! Yes you read it right.