How to Solve NameError: name 'STOPWORDS' is not defined -- wordcloud

Solution: Import the 'STOPWORDS' module

To Solve the error, add the following line to the top of your code.

from wordcloud import  STOPWORDS

 

For more information:
Python wordcloud STOPWORDS