From the course: Text Analytics and Predictions with Python Essential Training

Displaying the word cloud - Python Tutorial

From the course: Text Analytics and Predictions with Python Essential Training

Start my 1-month free trial

Displaying the word cloud

- [Instructor] In order to display the word cloud created in the previous example, we will use Matplotlib's pyplot function. Pyplot imshow method is sufficient to display the word cloud as a graphics image. The imshow method takes as input the word cloud object. We also set the axis to off to not show the axis lines. Finally, we execute the show command to actually display the word cloud. Let us run the code now. From the image shown, we see that the most common word used is data. This is followed by course, many and then Python. Colors in the word cloud change based on the frequency values for these words. You might notice that words like using, and want does not carry any meaning in the context of this word cloud and you might want to remove them. We will do so in the next video.

Contents