How to Solve NameError: name 'TextBlob' is not defined -- textblob
Solution: Import the 'TextBlob' module
To Solve the error, add the following line to the top of your code.
from textblob import TextBlob
For more information:
Python textblob TextBlob